diff options
author | Alois Wohlschlager <alois1@gmx-topmail.de> | 2024-04-20 11:51:35 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2024-04-23 21:22:10 +0200 |
commit | aadb108adfe90f67c48e596bab639696e3270b58 (patch) | |
tree | 0579c2dce7e1980140415500d6536f6f9473ef76 /pkgs/by-name/di | |
parent | 867e97bdcf0229b84a9e3dd2ba398332aa40315f (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.nix | 8 |
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" |