about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/emacs/elisp-packages/manual-packages/ghc-mod/default.nix
blob: 533c63608ab7536dbf8d97b86e57c07fb3a2f423 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;
  };
}