digikam: fix bash path

In some places, the path /bin/bash is hardcoded. Since bash is not available at
this location on NixOS, the affected functionality (for example custom scripts
in the batch queue manager) fails. Substitute it by a proper path.
This commit is contained in:
Alois Wohlschlager 2024-04-20 11:51:35 +02:00 committed by Bjørn Forsman
parent 867e97bdcf
commit aadb108adf
1 changed files with 8 additions and 0 deletions

View File

@ -26,6 +26,7 @@
, x265
, jasper
, bash
# For panorama and focus stacking
, enblend-enfuse
, hugin
@ -110,6 +111,13 @@ stdenv.mkDerivation rec {
cuda_cudart
]);
postPatch = ''
substituteInPlace \
core/dplugins/bqm/custom/userscript/userscript.cpp \
core/utilities/import/backend/cameracontroller.cpp \
--replace-fail \"/bin/bash\" \"${lib.getExe bash}\"
'';
cmakeFlags = [
"-DENABLE_MYSQLSUPPORT=1"
"-DENABLE_INTERNALMYSQL=1"