summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2022-11-12 14:07:16 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2022-11-13 09:16:48 -0300
commit022ffab437d64bd9469a323ca4a9aeec3af3fdf4 (patch)
tree448ab9a778f8ac50baf2841d7c3a1e9495255eae
parentemacs.pkgs.ghc-mod: move to a dedicated directory (diff)
downloadnixpkgs-022ffab437d64bd9469a323ca4a9aeec3af3fdf4.tar.gz
emacs.pkgs.haskell-unicode-input-method: move to a dedicated directory
There is no tangible reason to pollute a file like manual-packages with full descriptions of expressions. `callPackage` exists for a reason :)
-rw-r--r--pkgs/applications/editors/emacs/elisp-packages/haskell-unicode-input-method/default.nix34
-rw-r--r--pkgs/applications/editors/emacs/elisp-packages/manual-packages.nix29
2 files changed, 35 insertions, 28 deletions
diff --git a/pkgs/applications/editors/emacs/elisp-packages/haskell-unicode-input-method/default.nix b/pkgs/applications/editors/emacs/elisp-packages/haskell-unicode-input-method/default.nix
new file mode 100644
index 000000000000..1d9fa6a0c084
--- /dev/null
+++ b/pkgs/applications/editors/emacs/elisp-packages/haskell-unicode-input-method/default.nix
@@ -0,0 +1,34 @@
+{ lib
+, melpaBuild
+, fetchFromGitHub
+, writeText
+}:
+
+let
+ rev = "d8d168148c187ed19350bb7a1a190217c2915a63";
+in melpaBuild {
+ pname = "haskell-unicode-input-method";
+ version = "20110905.2307";
+
+ commit = rev;
+
+ src = fetchFromGitHub {
+ owner = "roelvandijk";
+ repo = "emacs-haskell-unicode-input-method";
+ inherit rev;
+ sha256 = "09b7bg2s9aa4s8f2kdqs4xps3jxkq5wsvbi87ih8b6id38blhf78";
+ };
+
+ recipe = writeText "recipe" ''
+ (haskell-unicode-input-method
+ :repo "roelvandijk/emacs-haskell-unicode-input-method"
+ :fetcher github)
+ '';
+
+ packageRequires = [];
+
+ meta = {
+ homepage = "https://melpa.org/#haskell-unicode-input-method/";
+ license = lib.licenses.free;
+ };
+}
diff --git a/pkgs/applications/editors/emacs/elisp-packages/manual-packages.nix b/pkgs/applications/editors/emacs/elisp-packages/manual-packages.nix
index b0dda76987e8..2bc0042d860b 100644
--- a/pkgs/applications/editors/emacs/elisp-packages/manual-packages.nix
+++ b/pkgs/applications/editors/emacs/elisp-packages/manual-packages.nix
@@ -6,34 +6,7 @@ self: with self; {
ghc-mod = callPackage ./elisp-ffi { };
- haskell-unicode-input-method = let
- rev = "d8d168148c187ed19350bb7a1a190217c2915a63";
- in melpaBuild {
- pname = "haskell-unicode-input-method";
- version = "20110905.2307";
-
- commit = rev;
-
- src = pkgs.fetchFromGitHub {
- owner = "roelvandijk";
- repo = "emacs-haskell-unicode-input-method";
- inherit rev;
- sha256 = "09b7bg2s9aa4s8f2kdqs4xps3jxkq5wsvbi87ih8b6id38blhf78";
- };
-
- recipe = pkgs.writeText "recipe" ''
- (haskell-unicode-input-method
- :repo "roelvandijk/emacs-haskell-unicode-input-method"
- :fetcher github)
- '';
-
- packageRequires = [];
-
- meta = {
- homepage = "https://melpa.org/#haskell-unicode-input-method/";
- license = lib.licenses.free;
- };
- };
+ haskell-unicode-input-method = callPackage ./haskell-unicode-input-method { };
matrix-client = let
rev = "d2ac55293c96d4c95971ed8e2a3f6f354565c5ed";