about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorGuillaume Maudoux <guillaume.maudoux@uclouvain.be>2018-04-10 17:09:51 +0200
committerGuillaume Maudoux <guillaume.maudoux@uclouvain.be>2018-04-10 17:11:26 +0200
commitd92d1db717d442e70a7f6691667da3d26c74780d (patch)
tree418e6d05b1c869030169eaba5fe4892e1ec3fb4b /pkgs
parent2b6bae5699450e1cf764e02fd70f75822d3d8079 (diff)
downloadnixlib-d92d1db717d442e70a7f6691667da3d26c74780d.tar
nixlib-d92d1db717d442e70a7f6691667da3d26c74780d.tar.gz
nixlib-d92d1db717d442e70a7f6691667da3d26c74780d.tar.bz2
nixlib-d92d1db717d442e70a7f6691667da3d26c74780d.tar.lz
nixlib-d92d1db717d442e70a7f6691667da3d26c74780d.tar.xz
nixlib-d92d1db717d442e70a7f6691667da3d26c74780d.tar.zst
nixlib-d92d1db717d442e70a7f6691667da3d26c74780d.zip
gitAndTools.hubUnstable: init at 2.3.0-pre10
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/version-management/git-and-tools/default.nix4
-rw-r--r--pkgs/applications/version-management/git-and-tools/hub/unstable.nix36
2 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/git-and-tools/default.nix b/pkgs/applications/version-management/git-and-tools/default.nix
index 864a69323f81..cd969ff81d0b 100644
--- a/pkgs/applications/version-management/git-and-tools/default.nix
+++ b/pkgs/applications/version-management/git-and-tools/default.nix
@@ -106,6 +106,10 @@ rec {
     inherit (darwin) Security;
   };
 
+  hubUnstable = callPackage ./hub/unstable.nix {
+    inherit (darwin) Security;
+  };
+
   qgit = qt5.callPackage ./qgit { };
 
   stgit = callPackage ./stgit {
diff --git a/pkgs/applications/version-management/git-and-tools/hub/unstable.nix b/pkgs/applications/version-management/git-and-tools/hub/unstable.nix
new file mode 100644
index 000000000000..7e83c2cfb674
--- /dev/null
+++ b/pkgs/applications/version-management/git-and-tools/hub/unstable.nix
@@ -0,0 +1,36 @@
+{ stdenv, fetchgit, go, ronn, groff, utillinux, Security }:
+
+stdenv.mkDerivation rec {
+  name = "hub-${version}";
+  version = "2.3.0-pre10";
+
+  src = fetchgit {
+    url = https://github.com/github/hub.git;
+    rev = "refs/tags/v${version}";
+    sha256 = "07sz1i6zxx2g36ayhjp1vjw523ckk5b0cr8b80s1qhar2d2hkibd";
+  };
+
+  buildInputs = [ go ronn groff utillinux ]
+    ++ stdenv.lib.optional stdenv.isDarwin Security;
+
+  buildPhase = ''
+    mkdir bin
+    ln -s ${ronn}/bin/ronn bin/ronn
+
+    patchShebangs .
+    make all man-pages
+  '';
+
+  installPhase = ''
+    prefix=$out sh -x < script/install.sh
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Command-line wrapper for git that makes you better at GitHub";
+
+    license = licenses.mit;
+    homepage = https://hub.github.com/;
+    maintainers = with maintainers; [ the-kenny ];
+    platforms = with platforms; unix;
+  };
+}