Browse Source

gitolite: fix default update hooks

Signed-off-by: Austin Seipp <aseipp@pobox.com>
nixos-19.03
Austin Seipp 8 years ago
parent
commit
2711f5772c
  1. 9
      pkgs/applications/version-management/gitolite/default.nix

9
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
'';

Loading…
Cancel
Save