2013-08-26 16:47:23 +02:00
|
|
|
{ stdenv, fetchurl, groff, rake, makeWrapper }:
|
2012-12-12 06:45:43 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "hub-${version}";
|
2014-03-03 11:08:43 +01:00
|
|
|
version = "1.12.0";
|
2012-12-12 06:45:43 +01:00
|
|
|
|
2013-08-26 16:47:23 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/github/hub/archive/v${version}.tar.gz";
|
2014-03-03 11:08:43 +01:00
|
|
|
sha256 = "1lbl4dl7483q320qw4jm6mqq4dbbk3xncypxgg86zcdigxvw6igv";
|
2012-12-12 06:45:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|