git.iko.soy/typeable/nixpkgs
on master help sign in
Add git-hub: command line GitHub interface

Rather cool, actually.

commit1a64d9251c39fc403802d53c7ae3a13b7171b1fd authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> dateTue 2 Jun 2015, 23:56 (12 years ago) parent33a1b14
2 files changed+41
pkgs/applications/version-management/git-and-tools/git-hub/default.nix+39 pkgs/top-level/all-packages.nix+2
pkgs/applications/version-management/git-and-tools/git-hub/default.nixnew file+39
@@ -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+}
pkgs/top-level/all-packages.nix+2
@@ -1519,6 +1519,8 @@ let
15191519
15201520 gifsicle = callPackage ../tools/graphics/gifsicle { };
15211521
1522+ git-hub = callPackage ../applications/version-management/git-hub { };
1523+
15221524 gitlab = callPackage ../applications/version-management/gitlab {
15231525 ruby = ruby_2_1_3;
15241526 };