nixpkgs/pkgs/applications/version-management/git-and-tools/hub/default.nix
Charles Strahan e51afe5e7c fix hub
2014-11-18 04:07:30 +00:00

33 lines
815 B
Nix

{ stdenv, fetchurl, groff, buildRubyGem, makeWrapper }:
let rake = buildRubyGem {
name = "rake-10.3.2";
sha256 = "0nvpkjrpsk8xxnij2wd1cdn6arja9q11sxx4aq4fz18bc6fss15m";
}; in
stdenv.mkDerivation rec {
name = "hub-${version}";
version = "1.12.2";
src = fetchurl {
url = "https://github.com/github/hub/archive/v${version}.tar.gz";
sha256 = "112yfv9xklsmwv859kypv7hz0a6dj5hkrmjp7z1h40nrljc9mi79";
};
buildInputs = [ rake makeWrapper ];
installPhase = ''
rake install "prefix=$out"
'';
fixupPhase = ''
wrapProgram $out/bin/hub --prefix PATH : ${groff}/bin
'';
meta = {
description = "A GitHub specific wrapper for git";
homepage = "http://defunkt.io/hub/";
license = stdenv.lib.licenses.mit;
maintainers = with stdenv.lib.maintainers; [ the-kenny ];
};
}