diff --git a/pkgs/desktops/xfce/core/tumbler/default.nix b/pkgs/desktops/xfce/core/tumbler/default.nix index 764a093516d5..034a6ade836d 100644 --- a/pkgs/desktops/xfce/core/tumbler/default.nix +++ b/pkgs/desktops/xfce/core/tumbler/default.nix @@ -1,6 +1,7 @@ { lib, mkXfceDerivation, + fetchpatch, ffmpegthumbnailer, gdk-pixbuf, glib, @@ -25,6 +26,16 @@ mkXfceDerivation { sha256 = "sha256-GmEMdG8Ikd4Tq/1ntCHiN0S7ehUXqzMX7OtXsycLd6E="; + patches = [ + # Fixes PDF previews staying low resolution + # https://gitlab.xfce.org/xfce/tumbler/-/merge_requests/35 + (fetchpatch { + name = "only-use-embedded-pdf-thumbnail-if-resolution-suffices.patch"; + url = "https://gitlab.xfce.org/xfce/tumbler/-/commit/69a704e0f4e622861ce4007f6f3f4f6f6b962689.patch"; + hash = "sha256-aFJoWWzTaikqCw6C1LH+BFxst/uKkOGT1QK9Mx8/8/c="; + }) + ]; + buildInputs = [ libxfce4util ffmpegthumbnailer