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