1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-12 15:47:28 +00:00
nixpkgs/pkgs/applications/editors/emacs-modes/haskell/default.nix
Peter Simons c08d5ab247 emacsPackages.haskellMode: mark 'broken'
This package is obsolete anyway. Use "emacsMelpa.haskell-mode" instead.
2018-06-07 15:22:16 +02:00

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
};
}