summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs-modes/structured-haskell-mode/default.nix
blob: b8838fac980fe856add6bd51391a57467207bc5e (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
{ cabal, emacs, haskellMode, haskellSrcExts }:

cabal.mkDerivation (self: {
  pname = "structured-haskell-mode";
  version = "1.0.4";
  sha256 = "1402wx27py7292ad7whsb13ywv71k36501jpfrn2p0v7knzknj8z";
  isLibrary = false;
  isExecutable = true;
  buildDepends = [ haskellSrcExts haskellMode ];
  buildTools = [ emacs ];
  postInstall = ''
    emacs -L elisp -L ${haskellMode}/share/emacs/site-lisp \
      --batch -f batch-byte-compile "elisp/"*.el
    install -d $out/share/emacs/site-lisp
    install "elisp/"*.el "elisp/"*.elc  $out/share/emacs/site-lisp
  '';
  meta = {
    homepage = "https://github.com/chrisdone/structured-haskell-mode";
    description = "Structured editing Emacs mode for Haskell";
    license = self.stdenv.lib.licenses.bsd3;
    platforms = self.ghc.meta.platforms;
  };
})