nixpkgs/pkgs/applications/editors/emacs-modes/flycheck/default.nix
2015-01-30 18:30:59 +01:00

33 lines
965 B
Nix

{ stdenv, fetchFromGitHub, emacs, let-alist, dash, texinfo }:
stdenv.mkDerivation {
name = "flycheck-0.22-64-g90dbc2d";
src = fetchFromGitHub {
owner = "flycheck";
repo = "flycheck";
rev = "90dbc2d";
sha256 = "08bg4jps6hjldbcrvqarrwdv4xzirm5pns5s0331wm0sc47yvbli";
};
buildInputs = [ emacs texinfo ];
buildPhase = ''
emacs -L ${let-alist}/share/emacs/site-lisp -L ${dash}/share/emacs/site-lisp --batch -f batch-byte-compile flycheck.el
makeinfo --force --no-split -o doc/flycheck.info doc/flycheck.texi
'';
installPhase = ''
mkdir -p $out/share/emacs/site-lisp $out/share/info
mv flycheck.el flycheck.elc $out/share/emacs/site-lisp/
mv "doc/"*.info $out/share/info/
'';
meta = {
homepage = "https://github.com/magit/git-modes";
description = "Emacs modes for various Git-related files";
license = stdenv.lib.licenses.gpl3Plus;
maintainers = with stdenv.lib.maintainers; [ simons ];
};
}