gitolite: fix reference to /bin

This commit is contained in:
Tom Bereknyei 2022-08-27 19:24:37 -04:00
parent da1b01a144
commit c7cbb380be

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, git, lib, makeWrapper, nettools, perl, perlPackages, nixosTests }:
{ stdenv, coreutils, fetchFromGitHub, git, lib, makeWrapper, nettools, perl, perlPackages, nixosTests }:
stdenv.mkDerivation rec {
pname = "gitolite";
@ -25,6 +25,8 @@ stdenv.mkDerivation rec {
--replace /usr/bin/perl "${perl}/bin/perl"
substituteInPlace src/lib/Gitolite/Setup.pm \
--replace hostname "${nettools}/bin/hostname"
substituteInPlace src/commands/sskm \
--replace /bin/rm "${coreutils}/bin/rm"
'';
postFixup = ''