2014-12-23 12:50:43 +01:00
|
|
|
{ stdenv, fetchFromGitHub, emacs, texinfo }:
|
|
|
|
|
|
|
|
let
|
2015-01-21 18:41:30 +01:00
|
|
|
version = "13.10-361-gfa09425"; # git describe --tags
|
2014-12-23 12:50:43 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "haskell-mode-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "haskell";
|
|
|
|
repo = "haskell-mode";
|
|
|
|
rev = "v${version}";
|
2015-01-21 18:41:30 +01:00
|
|
|
sha256 = "1bq4gddzwjy2w1hbsmwxcamcy87amz7ksy1vmpwg0qij88fk4av9";
|
2014-12-23 12:50:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|