mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
42 lines
1.2 KiB
Nix
42 lines
1.2 KiB
Nix
{ stdenv, fetchFromGitHub, git, nettools, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gitolite";
|
|
version = "3.6.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sitaramc";
|
|
repo = "gitolite";
|
|
rev = "v${version}";
|
|
sha256 = "1rkj7gknwjlc5ij9w39zf5mr647bm45la57yjczydmvrb8c56yrh";
|
|
};
|
|
|
|
buildInputs = [ git nettools perl ];
|
|
|
|
dontBuild = true;
|
|
|
|
postPatch = ''
|
|
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"
|
|
substituteInPlace src/lib/Gitolite/Setup.pm \
|
|
--replace hostname "${nettools}/bin/hostname"
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
perl ./install -to $out/bin
|
|
echo ${version} > $out/bin/VERSION
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Finely-grained git repository hosting";
|
|
homepage = https://gitolite.com/gitolite/index.html;
|
|
license = licenses.gpl2;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.thoughtpolice maintainers.lassulus maintainers.tomberek ];
|
|
};
|
|
}
|