2016-10-18 09:27:20 +02:00
|
|
|
{ stdenv, fetchFromGitHub, docutils, python2 }:
|
2015-06-02 23:56:56 +02:00
|
|
|
|
2015-11-14 21:32:51 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2015-06-02 23:56:56 +02:00
|
|
|
name = "git-hub-${version}";
|
2016-04-29 19:41:41 +02:00
|
|
|
version = "0.10";
|
2015-06-02 23:56:56 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2016-04-29 19:41:41 +02:00
|
|
|
sha256 = "0zy1g6zzv6cw8ffj8ffm28qa922fys2826n5813p8icqypi04y0k";
|
2015-06-02 23:56:56 +02:00
|
|
|
rev = "v${version}";
|
|
|
|
repo = "git-hub";
|
2016-04-29 19:41:41 +02:00
|
|
|
owner = "sociomantic-tsunami";
|
2015-06-02 23:56:56 +02:00
|
|
|
};
|
|
|
|
|
2016-10-18 09:27:20 +02:00
|
|
|
buildInputs = [ python2 ];
|
2015-06-02 23:56:56 +02:00
|
|
|
nativeBuildInputs = [ docutils ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile --replace rst2man rst2man.py
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-11-26 18:44:44 +01:00
|
|
|
installFlags = [ "prefix=$(out)" ];
|
2015-08-15 14:25:55 +02:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# Remove inert ftdetect vim plugin and a README that's a man page subset:
|
|
|
|
rm -r $out/share/{doc,vim}
|
|
|
|
'';
|
2015-11-14 21:32:51 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Git command line interface to GitHub";
|
|
|
|
longDescription = ''
|
|
|
|
A simple command line interface to GitHub, enabling most useful GitHub
|
|
|
|
tasks (like creating and listing pull request or issues) to be accessed
|
|
|
|
directly through the Git command line.
|
|
|
|
'';
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ nckx ];
|
|
|
|
};
|
2015-06-02 23:56:56 +02:00
|
|
|
}
|