emacs: add gh (github) package
This commit is contained in:
parent
733b548cd0
commit
ad5c002891
31
pkgs/applications/editors/emacs-modes/gh/default.nix
Normal file
31
pkgs/applications/editors/emacs-modes/gh/default.nix
Normal file
@ -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;
|
||||
};
|
||||
}
|
@ -6669,6 +6669,8 @@ let
|
||||
|
||||
emms = callPackage ../applications/editors/emacs-modes/emms { };
|
||||
|
||||
gh = callPackage ../applications/editors/emacs-modes/gh { };
|
||||
|
||||
jdee = callPackage ../applications/editors/emacs-modes/jdee {
|
||||
# Requires Emacs 23, for `avl-tree'.
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user