about summary refs log tree commit diff
diff options
context:
space:
mode:
authorHerwig Hochleitner <herwig@bendlas.net>2016-10-14 18:35:18 +0200
committerHerwig Hochleitner <herwig@bendlas.net>2017-10-28 15:19:07 +0200
commiteb3f736afdc3c288a33f35c18d08ad289009b876 (patch)
tree00ae040ffcc55a2ccff2b422f5a0220421a79663
parente05135d80e8cfd34c44ccfae78ab9b765c8af75f (diff)
downloadnixlib-eb3f736afdc3c288a33f35c18d08ad289009b876.tar
nixlib-eb3f736afdc3c288a33f35c18d08ad289009b876.tar.gz
nixlib-eb3f736afdc3c288a33f35c18d08ad289009b876.tar.bz2
nixlib-eb3f736afdc3c288a33f35c18d08ad289009b876.tar.lz
nixlib-eb3f736afdc3c288a33f35c18d08ad289009b876.tar.xz
nixlib-eb3f736afdc3c288a33f35c18d08ad289009b876.tar.zst
nixlib-eb3f736afdc3c288a33f35c18d08ad289009b876.zip
emacsPackages.gn: init 2017-09-21
-rw-r--r--pkgs/applications/editors/emacs-modes/gn/default.nix20
-rw-r--r--pkgs/top-level/emacs-packages.nix2
2 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/applications/editors/emacs-modes/gn/default.nix b/pkgs/applications/editors/emacs-modes/gn/default.nix
new file mode 100644
index 000000000000..39e7d1abf386
--- /dev/null
+++ b/pkgs/applications/editors/emacs-modes/gn/default.nix
@@ -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/
+  '';
+}
diff --git a/pkgs/top-level/emacs-packages.nix b/pkgs/top-level/emacs-packages.nix
index e7c98cc3869e..dbddc05a23e9 100644
--- a/pkgs/top-level/emacs-packages.nix
+++ b/pkgs/top-level/emacs-packages.nix
@@ -307,6 +307,8 @@ let
     inherit lib;
   };
 
+  gn = callPackage ../applications/editors/emacs-modes/gn { };
+
   shorten = melpaBuild rec {
     pname   = "shorten";
     version = circe.version;