2015-05-07 22:26:06 +01:00
|
|
|
{ stdenv, fetchurl, git, nettools, perl }:
|
2014-06-26 03:50:16 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gitolite-${version}";
|
2015-05-07 22:26:06 +01:00
|
|
|
version = "3.6.3";
|
2014-06-26 03:50:16 +01:00
|
|
|
|
2014-07-13 11:39:02 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/sitaramc/gitolite/archive/v${version}.tar.gz";
|
2015-05-07 22:26:06 +01:00
|
|
|
sha256 = "16cxifjxnri719qb6zzwkdf61x5y957acbdhcgqcan23x1mfn84v";
|
2014-06-26 03:50:16 +01:00
|
|
|
};
|
|
|
|
|
2015-05-07 22:26:06 +01:00
|
|
|
buildInputs = [ git nettools perl ];
|
2016-05-04 11:08:35 +01:00
|
|
|
|
|
|
|
dontBuild = true;
|
2014-06-26 06:23:59 +01:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace ./install --replace " 2>/dev/null" ""
|
|
|
|
substituteInPlace src/lib/Gitolite/Hooks/PostUpdate.pm \
|
2014-07-13 11:39:02 +01:00
|
|
|
--replace /usr/bin/perl "${perl}/bin/perl"
|
2014-06-26 06:23:59 +01:00
|
|
|
substituteInPlace src/lib/Gitolite/Hooks/Update.pm \
|
2014-07-13 11:39:02 +01:00
|
|
|
--replace /usr/bin/perl "${perl}/bin/perl"
|
2015-05-07 22:26:06 +01:00
|
|
|
substituteInPlace src/lib/Gitolite/Setup.pm \
|
|
|
|
--replace hostname "${nettools}/bin/hostname"
|
2014-06-26 06:23:59 +01:00
|
|
|
'';
|
2014-07-13 11:39:02 +01:00
|
|
|
|
2014-06-26 03:50:16 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
perl ./install -to $out/bin
|
|
|
|
'';
|
|
|
|
|
2014-07-13 11:39:02 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-06-26 03:50:16 +01:00
|
|
|
description = "Finely-grained git repository hosting";
|
2014-07-13 11:39:02 +01:00
|
|
|
homepage = http://gitolite.com/gitolite/index.html;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
2015-05-07 22:26:06 +01:00
|
|
|
maintainers = [ maintainers.thoughtpolice maintainers.lassulus ];
|
2014-06-26 03:50:16 +01:00
|
|
|
};
|
2014-06-26 04:55:43 +01:00
|
|
|
}
|