2014-12-19 11:57:02 -08:00
|
|
|
{ stdenv, fetchurl, emacs, texinfo }:
|
2008-07-07 04:49:57 -07:00
|
|
|
|
2014-12-23 03:50:43 -08:00
|
|
|
let
|
|
|
|
version = "13.10";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "haskell-mode-${version}";
|
2009-11-04 02:29:38 -08:00
|
|
|
|
2014-12-19 11:57:02 -08:00
|
|
|
src = fetchurl {
|
2014-12-23 03:50:43 -08:00
|
|
|
url = "https://github.com/haskell/haskell-mode/archive/v${version}.tar.gz";
|
2014-12-19 11:57:02 -08:00
|
|
|
sha256 = "0hcg7wpalcdw8j36m8vd854zrrgym074r7m903rpwfrhx9mlg02b";
|
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
|
|
|
|
2014-12-23 03:50:43 -08:00
|
|
|
makeFlags = "VERSION=${version} GIT_VERSION=${version}";
|
|
|
|
|
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
|
|
|
|
|
|
|
meta = {
|
2012-03-21 04:46:18 -07:00
|
|
|
homepage = "http://github.com/haskell/haskell-mode";
|
|
|
|
description = "Haskell mode for Emacs";
|
2010-10-07 06:13:42 -07:00
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
|
|
|
};
|
2005-12-22 02:49:43 -08:00
|
|
|
}
|