mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 07:31:20 +00:00
emacs: add "coffee-mode"
This commit is contained in:
parent
d6befca296
commit
260650e7e2
30
pkgs/applications/editors/emacs-modes/coffee/default.nix
Normal file
30
pkgs/applications/editors/emacs-modes/coffee/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ stdenv, fetchgit, emacs }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "coffee-mode-0.4.1";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://github.com/defunkt/coffee-mode.git";
|
||||
rev = "c45c5f7a529363bc7aa57db0f3df26389fd233d8";
|
||||
sha256 = "36a7792b5ffbcc5a580e8d5b2425494c60a8015cfde0e3f8a946a685da231ce2";
|
||||
};
|
||||
|
||||
buildInputs = [ emacs ];
|
||||
|
||||
buildPhase = ''
|
||||
emacs --batch -f batch-byte-compile coffee-mode.el
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -d $out/share/emacs/site-lisp
|
||||
install coffee-mode.el coffee-mode.elc $out/share/emacs/site-lisp
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "An Emacs major mode for CoffeeScript, unfancy JavaScript.";
|
||||
homepage = https://github.com/defunkt/coffee-mode;
|
||||
license = "GPLv2+";
|
||||
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
};
|
||||
}
|
|
@ -6662,6 +6662,8 @@ let
|
|||
|
||||
calfw = callPackage ../applications/editors/emacs-modes/calfw { };
|
||||
|
||||
coffee = callPackage ../applications/editors/emacs-modes/coffee { };
|
||||
|
||||
cua = callPackage ../applications/editors/emacs-modes/cua { };
|
||||
|
||||
ecb = callPackage ../applications/editors/emacs-modes/ecb { };
|
||||
|
|
Loading…
Reference in a new issue