23 lines
526 B
Nix
23 lines
526 B
Nix
{ stdenv, fetchgit, emacs }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "js2-mode-0-20141118";
|
|
|
|
src = fetchgit {
|
|
url = "git://github.com/mooz/js2-mode.git";
|
|
rev = "3abcd90ddc2f446ddf0fb874dd79ba870c26ad2d";
|
|
sha256 = "c0aaab4eeb8d60cfd5c382c3e30d4725e5ec492720d573e663ea69ee43aa73a8";
|
|
};
|
|
|
|
buildInputs = [ emacs ];
|
|
|
|
buildPhase = ''
|
|
emacs --batch -f batch-byte-compile js2-mode.el
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share/emacs/site-lisp
|
|
cp js2-mode.el js2-mode.elc $out/share/emacs/site-lisp/
|
|
'';
|
|
}
|