emacs.pkgs.ghc-mod: 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 :)
This commit is contained in:
AndersonTorres
2022-11-13 09:16:39 -03:00
parent 457efcd352
commit 96b0956aee
2 changed files with 28 additions and 21 deletions
@@ -0,0 +1,27 @@
{ lib
, pkgs
, melpaBuild
, haskellPackages
, writeText
}:
melpaBuild {
pname = "ghc";
inherit (haskellPackages.ghc-mod) version src;
packageRequires = [ haskell-mode ];
propagatedUserEnvPkgs = [ haskellPackages.ghc-mod ];
recipe = writeText "recipe" ''
(ghc-mod :repo "DanielG/ghc-mod" :fetcher github :files ("elisp/*.el"))
'';
fileSpecs = [ "elisp/*.el" ];
meta = {
description = "An extension of haskell-mode that provides completion of symbols and documentation browsing";
license = lib.licenses.bsd3;
};
}
@@ -4,27 +4,7 @@ self: with self; {
elisp-ffi = callPackage ./elisp-ffi { };
ghc-mod = melpaBuild {
pname = "ghc";
version = pkgs.haskellPackages.ghc-mod.version;
src = pkgs.haskellPackages.ghc-mod.src;
packageRequires = [ haskell-mode ];
propagatedUserEnvPkgs = [ pkgs.haskellPackages.ghc-mod ];
recipe = pkgs.writeText "recipe" ''
(ghc-mod :repo "DanielG/ghc-mod" :fetcher github :files ("elisp/*.el"))
'';
fileSpecs = [ "elisp/*.el" ];
meta = {
description = "An extension of haskell-mode that provides completion of symbols and documentation browsing";
license = lib.licenses.bsd3;
};
};
ghc-mod = callPackage ./elisp-ffi { };
haskell-unicode-input-method = let
rev = "d8d168148c187ed19350bb7a1a190217c2915a63";