@@ -0,0 +1,39 @@
1+{ stdenv, fetchFromGitHub, docutils, python }:
2+
3+let version = "0.9.0"; in
4+stdenv.mkDerivation {
5+ name = "git-hub-${version}";
6+
7+ src = fetchFromGitHub {
8+ sha256 = "0c4kq4a906lr8nzway7qh0560n2ydvidh9rlffh44902rd48kp0h";
9+ rev = "v${version}";
10+ repo = "git-hub";
11+ owner = "sociomantic";
12+ };
13+
14+ meta = with stdenv.lib; {
15+ inherit version;
16+ description = "Git command line interface to GitHub";
17+ longDescription = ''
18+ A simple command line interface to GitHub, enabling most useful GitHub
19+ tasks (like creating and listing pull request or issues) to be accessed
20+ directly through the Git command line.
21+ '';
22+ homepage = https://github.com/sociomantic/git-hub;
23+ license = licenses.gpl3Plus;
24+ platforms = with platforms; linux;
25+ maintainers = with maintainers; [ nckx ];
26+ };
27+
28+ buildInputs = [ python ];
29+ nativeBuildInputs = [ docutils ];
30+
31+ postPatch = ''
32+ substituteInPlace Makefile --replace rst2man rst2man.py
33+ patchShebangs .
34+ '';
35+
36+ enableParallelBuilding = true;
37+
38+ installFlags = "prefix=$(out)";
39+}