2012-08-05 01:15:34 +01:00
|
|
|
{ stdenv, fetchgit, emacs, pcache, logito }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gh-0.5.3";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/sigma/gh.el.git";
|
2012-08-11 10:45:31 +01:00
|
|
|
rev = "ef03b63d063ec22f03af449aa955c98dfad7f80e";
|
2016-06-02 12:26:44 +01:00
|
|
|
sha256 = "1pciq16vl5l4kvj08q4ib1jzk2bb2y1makcsyaw8k9jblqviw756";
|
2012-08-05 01:15:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2012-08-05 01:15:34 +01:00
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|