diff options
author | Daniel Fullmer <danielrf12@gmail.com> | 2020-01-18 16:41:57 -0500 |
---|---|---|
committer | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2020-01-18 16:41:57 -0500 |
commit | 5d1fda386e3692c7ea73c13ca1261ae46746a259 (patch) | |
tree | 838cb9679b4c6ee86d8c55c0d2ef1aaad7646993 /pkgs | |
parent | 9e9095c8e3aa6ece387cd66b5fa753ed79b16ec5 (diff) |
zoneminder: Fix installation location for cgi-bin (#76855)
Before this change, the build would duplicate the prefix in the installation location for cgi-bin stuff: -- Installing: /nix/store/skg6b81hikd3fvvdf62xbkm6gsbid41a-zoneminder-1.32.3/nix/store/skg6b81hikd3fvvdf62xbkm6gsbid41a-zoneminder-1.32.3/libexec/zoneminder/cgi-bin/zms
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/servers/zoneminder/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/servers/zoneminder/default.nix b/pkgs/servers/zoneminder/default.nix index 2dcaf44010e70..e536ea0373cf6 100644 --- a/pkgs/servers/zoneminder/default.nix +++ b/pkgs/servers/zoneminder/default.nix @@ -162,6 +162,10 @@ in stdenv.mkDerivation rec { "-DZM_CONFIG_DIR=${placeholder "out"}/etc/zoneminder" "-DZM_WEB_USER=${user}" "-DZM_WEB_GROUP=${user}" + + # Workaround issue in CMakeLists.txt where ZM_CGIDIR set to ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBEXECDIR}/zoneminder/cgi-bin + # But CMAKE_INSTALL_LIBEXECDIR is already an absolute path from cmake setup-hook + "-DZM_CGIDIR=${placeholder "out"}/libexec/zoneminder/cgi-bin" ]; passthru = { inherit dirName; }; |