diff options
Diffstat (limited to 'pkgs/development/libraries/poppler/default.nix')
-rw-r--r-- | pkgs/development/libraries/poppler/default.nix | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/pkgs/development/libraries/poppler/default.nix b/pkgs/development/libraries/poppler/default.nix index 8d2e91513f1..b9098789908 100644 --- a/pkgs/development/libraries/poppler/default.nix +++ b/pkgs/development/libraries/poppler/default.nix @@ -23,7 +23,7 @@ , texlive , zlib , withData ? true, poppler_data -, qt5Support ? false, qtbase ? null +, qt5Support ? false, qt6Support ? false, qtbase ? null , introspectionSupport ? false, gobject-introspection ? null , utils ? false, nss ? null , minimal ? false @@ -44,6 +44,14 @@ stdenv.mkDerivation rec { sha256 = "sha256-tJMyhyFALyXLdSP5zcL318WfRa2Zm951xjyQYE2w8gs="; }; + patches = [ + (fetchpatch { + name = "CVE-2022-38784.patch"; + url = "https://gitlab.freedesktop.org/poppler/poppler/-/commit/27354e9d9696ee2bc063910a6c9a6b27c5184a52.patch"; + sha256 = "sha256-M12zaHxcgQB/37tHffllqzd+Juq9BH5gpKVGaRY00vI="; + }) + ]; + nativeBuildInputs = [ cmake ninja @@ -72,7 +80,7 @@ stdenv.mkDerivation rec { lcms curl nss - ] ++ lib.optionals qt5Support [ + ] ++ lib.optionals (qt5Support || qt6Support) [ qtbase ] ++ lib.optionals introspectionSupport [ gobject-introspection @@ -85,6 +93,7 @@ stdenv.mkDerivation rec { (mkFlag (!minimal) "LIBCURL") (mkFlag utils "UTILS") (mkFlag qt5Support "QT5") + (mkFlag qt6Support "QT6") ]; dontWrapQtApps = true; |