2014-10-22 10:32:53 +01:00
|
|
|
{ stdenv, fetchFromGitHub, emacs }:
|
|
|
|
|
|
|
|
let
|
2015-09-01 14:48:25 +01:00
|
|
|
version = "1.2.0";
|
2014-10-22 10:32:53 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "git-modes-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "magit";
|
|
|
|
repo = "git-modes";
|
2015-09-01 14:48:25 +01:00
|
|
|
rev = version;
|
|
|
|
sha256 = "1ipr51v7nhbbgxbbz0fp3i78ypp73kyxgc4ni8nnr7yirjhsksfd";
|
2014-10-22 10:32:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ emacs ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/emacs/site-lisp
|
|
|
|
mv *.el *.elc $out/share/emacs/site-lisp/
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|