diff --git a/pkgs/applications/graphics/digikam/default.nix b/pkgs/applications/graphics/digikam/default.nix index a62940ff7038..a74c7c44bdb8 100644 --- a/pkgs/applications/graphics/digikam/default.nix +++ b/pkgs/applications/graphics/digikam/default.nix @@ -1,4 +1,4 @@ -{ mkDerivation, lib, fetchurl, cmake, doxygen, extra-cmake-modules, wrapGAppsHook +{ mkDerivation, lib, fetchurl, cmake, doxygen, extra-cmake-modules, wrapGAppsHook, fetchpatch # For `digitaglinktree` , perl, sqlite @@ -114,6 +114,16 @@ mkDerivation rec { --replace "/usr/bin/sqlite3" "${sqlite}/bin/sqlite3" ''; + patches = [ + # fix Qt-5.9.3 empty album problem + (fetchpatch { + url = "https://cgit.kde.org/digikam.git/patch/?id=855ba5b7d4bc6337234720a72ea824ddd3b32e5b"; + sha256 = "0zk8p182piy6xn9v0mhwawya9ciq596vql1qc3lgnx371a97mmni"; + }) + ]; + + patchFlags = "-d core -p1"; + meta = with lib; { description = "Photo Management Program"; license = licenses.gpl2;