about summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs-modes/haskell/default.nix
blob: 5813fde815f8ce1a9315cee16fea707f32b99be3 (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
{stdenv, fetchurl, emacs}:

stdenv.mkDerivation rec {
  name = "haskell-mode-2.8.0";

  src = fetchurl {
    url = "http://projects.haskell.org/haskellmode-emacs/${name}.tar.gz";
    sha256 = "1065g4xy3ca72xhqh6hfxs5j3mls82bli8w5rhz1npzyfwlwhkb1";
  };

  buildInputs = [emacs];

  installPhase = ''
    ensureDir "$out/share/emacs/site-lisp"
    cp *.el *.elc *.hs "$out/share/emacs/site-lisp/"
  '';

  meta = {
    homepage = "http://projects.haskell.org/haskellmode-emacs/";
    description = "Haskell mode package for Emacs";

    platforms = stdenv.lib.platforms.unix;
    maintainers = [ stdenv.lib.maintainers.simons ];
  };
}