zoneminder: replace /bin/rm with Nix path

This fixes running zmaudit.pl, among others.
This commit is contained in:
Ratchanan Srirattanamet 2023-03-19 20:48:22 +07:00
parent 630cbf639d
commit 2a6fe23bac

View File

@ -116,6 +116,12 @@ in stdenv.mkDerivation rec {
--replace "'ffmpeg " "'${ffmpeg}/bin/ffmpeg "
done
for f in scripts/ZoneMinder/lib/ZoneMinder/Event.pm \
scripts/ZoneMinder/lib/ZoneMinder/Storage.pm ; do
substituteInPlace $f \
--replace '/bin/rm' "${coreutils}/bin/rm"
done
substituteInPlace web/includes/functions.php \
--replace "'date " "'${coreutils}/bin/date " \
--subst-var-by srcHash "`basename $out`"