emacsPackages.gn: init 2017-09-21

This commit is contained in:
Herwig Hochleitner 2016-10-14 18:35:18 +02:00
parent e05135d80e
commit eb3f736afd
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,20 @@
{ stdenv, fetchgit, emacs }:
stdenv.mkDerivation {
name = "gn-mode-2017-09-21";
src = fetchgit {
url = "https://chromium.googlesource.com/chromium/src/tools/gn";
rev = "34f2780efb3fe14fe361ec161ad58440de5a6b36";
sha256 = "10cisqz3l6ny3471yi7y1z8v622lpl65zh0liqr6absvmy63g866";
};
buildInputs = [ emacs ];
buildPhase = ''
emacs --batch -f batch-byte-compile misc/emacs/gn-mode.el
'';
installPhase = ''
mkdir -p $out/share/emacs/site-lisp/
cp misc/emacs/gn-mode.el* $out/share/emacs/site-lisp/
'';
}

View File

@ -307,6 +307,8 @@ let
inherit lib;
};
gn = callPackage ../applications/editors/emacs-modes/gn { };
shorten = melpaBuild rec {
pname = "shorten";
version = circe.version;