From 2711f5772c1df0fe17e88975b8a360d4ec73d77a Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Thu, 26 Jun 2014 00:23:59 -0500 Subject: [PATCH] gitolite: fix default update hooks Signed-off-by: Austin Seipp --- .../applications/version-management/gitolite/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/version-management/gitolite/default.nix b/pkgs/applications/version-management/gitolite/default.nix index 011b9fc9d048..2dcb13e5db5e 100644 --- a/pkgs/applications/version-management/gitolite/default.nix +++ b/pkgs/applications/version-management/gitolite/default.nix @@ -13,9 +13,16 @@ stdenv.mkDerivation rec { buildInputs = [ perl git ]; buildPhase = "true"; + + patchPhase = '' + substituteInPlace ./install --replace " 2>/dev/null" "" + substituteInPlace src/lib/Gitolite/Hooks/PostUpdate.pm \ + --replace /usr/bin/perl "/usr/bin/env perl" + substituteInPlace src/lib/Gitolite/Hooks/Update.pm \ + --replace /usr/bin/perl "/usr/bin/env perl" + ''; installPhase = '' mkdir -p $out/bin - substituteInPlace ./install --replace " 2>/dev/null" "" git tag v${version} # Gitolite requires a tag for the version information :/ perl ./install -to $out/bin '';