2012-02-07 18:40:02 +01:00
|
|
|
{ stdenv, fetchgit, emacs }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-08-03 20:20:26 +02:00
|
|
|
name = "js2-mode-0-20140114";
|
2012-02-07 18:40:02 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://github.com/mooz/js2-mode.git";
|
2014-08-25 08:11:13 +02:00
|
|
|
rev = "b250efaad886dd07b8c69d4573425d095c6652e2";
|
|
|
|
sha256 = "30e61e7d364e9175d408bdaf57fda886a4eea22cf5cbd97abb5c307c52b05918";
|
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/
|
|
|
|
'';
|
|
|
|
}
|