1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

emacs js2-mode

svn path=/nixpkgs/trunk/; revision=32122
This commit is contained in:
Florian Friesdorf 2012-02-07 17:40:02 +00:00
parent af8aceb847
commit df12f0bd01
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,22 @@
{ stdenv, fetchgit, emacs }:
stdenv.mkDerivation {
name = "js2-mode-0-20120130";
src = fetchgit {
url = "git://github.com/mooz/js2-mode.git";
rev = "4c008b1987aa53769899e24808b6d74b41b4ff40";
sha256 = "6af5f52e46ffe85b7610e2db19a96afbef60a6f5374f1c5db3653448e30160be";
};
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/
'';
}

View file

@ -6733,6 +6733,8 @@ let
# Requires Emacs 23, for `avl-tree'.
};
js2 = callPackage ../applications/editors/emacs-modes/js2 { };
stratego = callPackage ../applications/editors/emacs-modes/stratego { };
haskellMode = callPackage ../applications/editors/emacs-modes/haskell { };