From 630cbf639d8b99add16dc2bdeb319057056c7f23 Mon Sep 17 00:00:00 2001 From: Ratchanan Srirattanamet Date: Sun, 19 Mar 2023 20:35:21 +0700 Subject: [PATCH 1/2] zoneminer: 1.36.32 -> 1.36.33 --- pkgs/servers/zoneminder/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/zoneminder/default.nix b/pkgs/servers/zoneminder/default.nix index 80ff140122fd..8b0715751294 100644 --- a/pkgs/servers/zoneminder/default.nix +++ b/pkgs/servers/zoneminder/default.nix @@ -57,13 +57,13 @@ let in stdenv.mkDerivation rec { pname = "zoneminder"; - version = "1.36.32"; + version = "1.36.33"; src = fetchFromGitHub { owner = "ZoneMinder"; repo = "zoneminder"; rev = version; - sha256 = "sha256-8iRoGpkpZVOOr0wSY9iey2x4gPfKTfUNtt5TCHCCRIQ="; + sha256 = "sha256-KUhFZrF7BuLB2Z3LnTcHEEZVA6iosam6YsOd8KWvx7E="; fetchSubmodules = true; }; From 2a6fe23bacef46e08f2e8cb54aaa48168d96ee49 Mon Sep 17 00:00:00 2001 From: Ratchanan Srirattanamet Date: Sun, 19 Mar 2023 20:48:22 +0700 Subject: [PATCH 2/2] zoneminder: replace /bin/rm with Nix path This fixes running zmaudit.pl, among others. --- pkgs/servers/zoneminder/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/servers/zoneminder/default.nix b/pkgs/servers/zoneminder/default.nix index 8b0715751294..503f7b04cd28 100644 --- a/pkgs/servers/zoneminder/default.nix +++ b/pkgs/servers/zoneminder/default.nix @@ -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`"