diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2018-04-10 17:36:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-10 17:36:33 +0100 |
commit | be81bed434d0bd103096a6fc81ab7501d941ac0d (patch) | |
tree | 11da0c83442dfc8546b84e11afa51a9eb0cf2c2c /pkgs/applications/version-management | |
parent | 87fd6c1f26e55f68f933fde8fce23a1f4af86984 (diff) | |
parent | d92d1db717d442e70a7f6691667da3d26c74780d (diff) | |
download | nixlib-be81bed434d0bd103096a6fc81ab7501d941ac0d.tar nixlib-be81bed434d0bd103096a6fc81ab7501d941ac0d.tar.gz nixlib-be81bed434d0bd103096a6fc81ab7501d941ac0d.tar.bz2 nixlib-be81bed434d0bd103096a6fc81ab7501d941ac0d.tar.lz nixlib-be81bed434d0bd103096a6fc81ab7501d941ac0d.tar.xz nixlib-be81bed434d0bd103096a6fc81ab7501d941ac0d.tar.zst nixlib-be81bed434d0bd103096a6fc81ab7501d941ac0d.zip |
Merge pull request #35044 from layus/update-hub
gitAndTools.hubUnstable: init at 2.3.0-pre10
Diffstat (limited to 'pkgs/applications/version-management')
-rw-r--r-- | pkgs/applications/version-management/git-and-tools/default.nix | 4 | ||||
-rw-r--r-- | pkgs/applications/version-management/git-and-tools/hub/unstable.nix | 36 |
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; + }; +} |