Commit aadb108a authored by Alois Wohlschlager's avatar Alois Wohlschlager Committed by Bjørn Forsman
Browse files

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.
parent 867e97bd
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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"