about summary refs log tree commit diff
path: root/pkgs/by-name/di
diff options
context:
space:
mode:
authorAlois Wohlschlager <alois1@gmx-topmail.de>2024-04-20 11:51:35 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2024-04-23 21:22:10 +0200
commitaadb108adfe90f67c48e596bab639696e3270b58 (patch)
tree0579c2dce7e1980140415500d6536f6f9473ef76 /pkgs/by-name/di
parent867e97bdcf0229b84a9e3dd2ba398332aa40315f (diff)
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.
Diffstat (limited to 'pkgs/by-name/di')
-rw-r--r--pkgs/by-name/di/digikam/package.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/by-name/di/digikam/package.nix b/pkgs/by-name/di/digikam/package.nix
index 01659a65173e2..8100b835e44ac 100644
--- a/pkgs/by-name/di/digikam/package.nix
+++ b/pkgs/by-name/di/digikam/package.nix
@@ -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"