nixpkgs/pkgs/applications/editors/emacs-modes/structured-haskell-mode/default.nix

24 lines
803 B
Nix
Raw Normal View History

2014-06-28 01:03:04 +02:00
{ cabal, emacs, haskellMode, haskellSrcExts }:
2014-03-01 10:00:36 +01:00
cabal.mkDerivation (self: {
pname = "structured-haskell-mode";
2014-06-28 01:03:04 +02:00
version = "1.0.3";
sha256 = "0axmw8bj51q8v0wd4jp6giw9dnv0mp7kp8yd16s4nm4hcqgrh5h2";
2014-03-01 10:00:36 +01:00
isLibrary = false;
isExecutable = true;
2014-06-28 01:03:04 +02:00
buildDepends = [ haskellSrcExts haskellMode ];
2014-03-01 10:00:36 +01:00
buildTools = [ emacs ];
postInstall = ''
2014-06-28 01:03:04 +02:00
emacs -L elisp -L ${haskellMode}/share/emacs/site-lisp \
--batch -f batch-byte-compile "elisp/"*.el
2014-03-01 10:00:36 +01:00
install -d $out/share/emacs/site-lisp
install "elisp/"*.el "elisp/"*.elc $out/share/emacs/site-lisp
2014-03-01 10:00:36 +01:00
'';
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;
};
})