diff options
author | Mathijs Kwik <mathijs@bluescreen303.nl> | 2012-08-05 02:15:34 +0200 |
---|---|---|
committer | Mathijs Kwik <mathijs@bluescreen303.nl> | 2012-08-05 02:15:34 +0200 |
commit | ad5c002891eac0284ab1b7cd03b0b0080ea208b6 (patch) | |
tree | a2b4e7f768d79c2b37a1b0d1c82f768bb48737a7 /pkgs/applications/editors/emacs-modes/gh | |
parent | 733b548cd076a25306537bfab67a3b6065b20129 (diff) |
emacs: add gh (github) package
Diffstat (limited to 'pkgs/applications/editors/emacs-modes/gh')
-rw-r--r-- | pkgs/applications/editors/emacs-modes/gh/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/applications/editors/emacs-modes/gh/default.nix b/pkgs/applications/editors/emacs-modes/gh/default.nix new file mode 100644 index 0000000000000..a925126868237 --- /dev/null +++ b/pkgs/applications/editors/emacs-modes/gh/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchgit, emacs, pcache, logito }: + +stdenv.mkDerivation rec { + name = "gh-0.5.3"; + + src = fetchgit { + url = "https://github.com/sigma/gh.el.git"; + rev = "v0.5.3"; + sha256 = "efa231e0091e8c7785385149dc97b2d8dc24aba65f4b0974b8ed7f62b7596ad3"; + }; + + buildInputs = [ emacs ]; + propagatedUserEnvPkgs = [ pcache logito ]; + + patchPhase = '' + sed -i Makefile \ + -e "s|^ *EFLAGS *=|& -L ${pcache}/share/emacs/site-lisp -L ${logito}/share/emacs/site-lisp --eval '(setq user-emacs-directory \"./\")'|" \ + -e "s|/usr/local|$out|" \ + -e "s|/site-lisp/\$(PKGNAME)|/site-lisp|" + ''; + + buildPhase = "make lisp"; + + meta = { + description = "A (very early) GitHub client library for Emacs"; + homepage = https://github.com/sigma/gh.el; + license = "GPLv2+"; + + platforms = stdenv.lib.platforms.all; + }; +} |