mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
emacs js2-mode
svn path=/nixpkgs/trunk/; revision=32122
This commit is contained in:
parent
af8aceb847
commit
df12f0bd01
22
pkgs/applications/editors/emacs-modes/js2/default.nix
Normal file
22
pkgs/applications/editors/emacs-modes/js2/default.nix
Normal 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/
|
||||
'';
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue