c08d5ab247
This package is obsolete anyway. Use "emacsMelpa.haskell-mode" instead.
43 lines
1.1 KiB
Nix
43 lines
1.1 KiB
Nix
{ stdenv, fetchFromGitHub, emacs, texinfo }:
|
|
|
|
# Use "emacsMelpa.haskell-mode" instead.
|
|
|
|
let
|
|
version = "13.14-169-g0d3569d"; # git describe --tags
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "haskell-mode-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "haskell";
|
|
repo = "haskell-mode";
|
|
rev = "v${version}";
|
|
sha256 = "0v5iy9wy05hf44wy7qs0c9q0v34m4k6wrqg4kyvji61568k1yx3k";
|
|
};
|
|
|
|
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 = https://github.com/haskell/haskell-mode;
|
|
description = "Haskell mode for Emacs";
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
maintainers = [ stdenv.lib.maintainers.peti ];
|
|
broken = true; # no longer compiles and this package is obsolete anyway
|
|
};
|
|
}
|