gitolite: wrap gitolite-shell

git wasn't found when used with services.fcgiwrap
for http auth
This commit is contained in:
Bruno Bigras
2019-12-08 12:26:02 +01:00
committed by Lassulus
parent 0ccde691f8
commit 9314dc43b3
3 changed files with 103 additions and 2 deletions
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, git, nettools, perl }:
{ stdenv, fetchFromGitHub, git, lib, makeWrapper, nettools, perl }:
stdenv.mkDerivation rec {
pname = "gitolite";
@@ -11,7 +11,9 @@ stdenv.mkDerivation rec {
sha256 = "1rkj7gknwjlc5ij9w39zf5mr647bm45la57yjczydmvrb8c56yrh";
};
buildInputs = [ git nettools perl ];
buildInputs = [ nettools perl ];
nativeBuildInputs = [ makeWrapper ];
propagatedBuildInputs = [ git ];
dontBuild = true;
@@ -25,6 +27,11 @@ stdenv.mkDerivation rec {
--replace hostname "${nettools}/bin/hostname"
'';
postFixup = ''
wrapProgram $out/bin/gitolite-shell \
--prefix PATH : "${git}/bin"
'';
installPhase = ''
mkdir -p $out/bin
perl ./install -to $out/bin