c67aaca6d9
We track the git version, because haskell-mode does not provide regular releases except via MELPA, which our Emacs infrastructure does not support yet.
40 lines
1022 B
Nix
40 lines
1022 B
Nix
{ stdenv, fetchFromGitHub, emacs, texinfo }:
|
|
|
|
let
|
|
version = "13.14-130-ga03bd9b"; # git describe --tags
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "haskell-mode-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "haskell";
|
|
repo = "haskell-mode";
|
|
rev = "v${version}";
|
|
sha256 = "0k4jfixzsvwpsz37f2pvbr9slz8fpcd9nwddcv2bvi4x20jp11ma";
|
|
};
|
|
|
|
buildInputs = [ emacs texinfo ];
|
|
|
|
makeFlags = "VERSION=v${version} GIT_VERSION=v${version}";
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share/emacs/site-lisp
|
|
cp *.el *.elc *.hs $out/share/emacs/site-lisp/
|
|
mkdir -p $out/share/info
|
|
cp -v *.info* $out/share/info/
|
|
'';
|
|
|
|
# The test suite must run *after* copying the generated files to $out
|
|
# because "make check" implies "make clean".
|
|
doInstallCheck = true;
|
|
installCheckTarget = "check";
|
|
|
|
meta = {
|
|
homepage = "http://github.com/haskell/haskell-mode";
|
|
description = "Haskell mode for Emacs";
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
|
};
|
|
}
|