e7ecb78aab
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
36 lines
990 B
Nix
36 lines
990 B
Nix
{ stdenv, fetchurl, perl, git }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gitolite-${version}";
|
|
version = "3.6.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/sitaramc/gitolite/archive/v${version}.tar.gz";
|
|
sha256 = "1gsgzi9ayb4rablki3mqr11b0h8db4xg43df660marfpacmkfb01";
|
|
};
|
|
|
|
buildInputs = [ perl git ];
|
|
buildPhase = "true";
|
|
|
|
patchPhase = ''
|
|
substituteInPlace ./install --replace " 2>/dev/null" ""
|
|
substituteInPlace src/lib/Gitolite/Hooks/PostUpdate.pm \
|
|
--replace /usr/bin/perl "${perl}/bin/perl"
|
|
substituteInPlace src/lib/Gitolite/Hooks/Update.pm \
|
|
--replace /usr/bin/perl "${perl}/bin/perl"
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
perl ./install -to $out/bin
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Finely-grained git repository hosting";
|
|
homepage = http://gitolite.com/gitolite/index.html;
|
|
license = licenses.gpl2;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.thoughtpolice ];
|
|
};
|
|
}
|