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