2018-01-27 21:14:09 +01:00
|
|
|
{ stdenv, fetchFromGitHub, git, nettools, perl }:
|
2014-06-26 04:50:16 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gitolite-${version}";
|
2018-01-27 21:14:09 +01:00
|
|
|
version = "3.6.7";
|
2014-06-26 04:50:16 +02:00
|
|
|
|
2018-01-27 21:14:09 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sitaramc";
|
|
|
|
repo = "gitolite";
|
|
|
|
rev = "9123ae44b14b9df423a7bf1e693e05865ca320ac";
|
|
|
|
sha256 = "0rmyzr66lxh2ildf3h1nh3hh2ndwk21rjdin50r5vhwbdd7jg8vb";
|
2014-06-26 04:50:16 +02:00
|
|
|
};
|
|
|
|
|
2015-05-07 23:26:06 +02:00
|
|
|
buildInputs = [ git nettools perl ];
|
2016-05-04 12:08:35 +02:00
|
|
|
|
|
|
|
dontBuild = true;
|
2014-06-26 07:23:59 +02:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace ./install --replace " 2>/dev/null" ""
|
|
|
|
substituteInPlace src/lib/Gitolite/Hooks/PostUpdate.pm \
|
2014-07-13 12:39:02 +02:00
|
|
|
--replace /usr/bin/perl "${perl}/bin/perl"
|
2014-06-26 07:23:59 +02:00
|
|
|
substituteInPlace src/lib/Gitolite/Hooks/Update.pm \
|
2014-07-13 12:39:02 +02:00
|
|
|
--replace /usr/bin/perl "${perl}/bin/perl"
|
2015-05-07 23:26:06 +02:00
|
|
|
substituteInPlace src/lib/Gitolite/Setup.pm \
|
|
|
|
--replace hostname "${nettools}/bin/hostname"
|
2014-06-26 07:23:59 +02:00
|
|
|
'';
|
2014-07-13 12:39:02 +02:00
|
|
|
|
2014-06-26 04:50:16 +02:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
perl ./install -to $out/bin
|
2018-01-27 21:14:09 +01:00
|
|
|
echo ${version} > $out/bin/VERSION
|
2014-06-26 04:50:16 +02:00
|
|
|
'';
|
|
|
|
|
2014-07-13 12:39:02 +02:00
|
|
|
meta = with stdenv.lib; {
|
2014-06-26 04:50:16 +02:00
|
|
|
description = "Finely-grained git repository hosting";
|
2014-07-13 12:39:02 +02:00
|
|
|
homepage = http://gitolite.com/gitolite/index.html;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
2018-01-27 21:14:09 +01:00
|
|
|
maintainers = [ maintainers.thoughtpolice maintainers.lassulus maintainers.tomberek ];
|
2014-06-26 04:50:16 +02:00
|
|
|
};
|
2014-06-26 05:55:43 +02:00
|
|
|
}
|