diff options
author | Florian Friesdorf <flo@chaoflow.net> | 2012-02-07 17:40:02 +0000 |
---|---|---|
committer | Florian Friesdorf <flo@chaoflow.net> | 2012-02-07 17:40:02 +0000 |
commit | df12f0bd015155663df966408ec9c48cf4c79b57 (patch) | |
tree | e2b7ca8c7c8cef087cd1d0f68df2a019cac7fb82 /pkgs | |
parent | af8aceb847339fca08618df2f1652f1a1169c6c4 (diff) |
emacs js2-mode
svn path=/nixpkgs/trunk/; revision=32122
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/editors/emacs-modes/js2/default.nix | 22 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/applications/editors/emacs-modes/js2/default.nix b/pkgs/applications/editors/emacs-modes/js2/default.nix new file mode 100644 index 0000000000000..e5958021aa27b --- /dev/null +++ b/pkgs/applications/editors/emacs-modes/js2/default.nix @@ -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/ + ''; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f239d0a7dc51b..09a55fa49815f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { }; |