2012-02-07 18:40:02 +01:00
|
|
|
{ stdenv, fetchgit, emacs }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-11-19 23:37:37 +01:00
|
|
|
name = "js2-mode-0-20141118";
|
2012-02-07 18:40:02 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://github.com/mooz/js2-mode.git";
|
2014-11-19 23:37:37 +01:00
|
|
|
rev = "3abcd90ddc2f446ddf0fb874dd79ba870c26ad2d";
|
2016-06-02 13:26:44 +02:00
|
|
|
sha256 = "0sh9ax2w0ydhjjn4vnwbgy3926p7ad6h6nmsnm0a3zlldj9a4vwn";
|
2012-02-07 18:40:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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/
|
|
|
|
'';
|
|
|
|
}
|