2015-08-06 13:16:54 +01:00
|
|
|
{ stdenv, fetchFromGitHub, emacs, texinfo }:
|
2008-07-07 12:49:57 +01:00
|
|
|
|
2014-12-23 11:50:43 +00:00
|
|
|
let
|
2015-09-01 14:17:44 +01:00
|
|
|
version = "13.14-169-g0d3569d"; # git describe --tags
|
2014-12-23 11:50:43 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "haskell-mode-${version}";
|
2009-11-04 10:29:38 +00:00
|
|
|
|
2015-08-06 13:16:54 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "haskell";
|
|
|
|
repo = "haskell-mode";
|
|
|
|
rev = "v${version}";
|
2015-09-01 14:17:44 +01:00
|
|
|
sha256 = "0v5iy9wy05hf44wy7qs0c9q0v34m4k6wrqg4kyvji61568k1yx3k";
|
2005-12-22 10:49:43 +00:00
|
|
|
};
|
2009-11-04 10:29:38 +00:00
|
|
|
|
2013-07-20 12:01:41 +01:00
|
|
|
buildInputs = [ emacs texinfo ];
|
2009-11-04 10:29:38 +00:00
|
|
|
|
2015-08-06 13:16:54 +01:00
|
|
|
makeFlags = "VERSION=v${version} GIT_VERSION=v${version}";
|
2014-12-23 11:50:43 +00:00
|
|
|
|
2008-09-02 14:51:32 +01:00
|
|
|
installPhase = ''
|
2014-12-23 11:50:43 +00:00
|
|
|
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/
|
2008-07-07 12:49:57 +01:00
|
|
|
'';
|
2010-10-07 14:13:42 +01:00
|
|
|
|
2015-08-06 13:16:54 +01:00
|
|
|
# The test suite must run *after* copying the generated files to $out
|
|
|
|
# because "make check" implies "make clean".
|
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckTarget = "check";
|
|
|
|
|
2010-10-07 14:13:42 +01:00
|
|
|
meta = {
|
2012-03-21 11:46:18 +00:00
|
|
|
homepage = "http://github.com/haskell/haskell-mode";
|
|
|
|
description = "Haskell mode for Emacs";
|
2010-10-07 14:13:42 +01:00
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
|
|
|
};
|
2005-12-22 10:49:43 +00:00
|
|
|
}
|