xpdf: specify paths to Qt plugins

On Darwing this fixes icons and "native" look.

Fixes: #36188

+3 -3
+3 -3
pkgs/applications/misc/xpdf/default.nix
··· 1 { enableGUI ? true, enablePDFtoPPM ? true, useT1Lib ? false 2 , stdenv, fetchurl, zlib, libpng, freetype ? null, t1lib ? null 3 - , cmake, qtbase ? null, makeWrapper 4 }: 5 6 - assert enableGUI -> qtbase != null && freetype != null; 7 assert enablePDFtoPPM -> freetype != null; 8 assert useT1Lib -> t1lib != null; 9 ··· 38 39 postInstall = stdenv.lib.optionalString stdenv.isDarwin '' 40 wrapProgram $out/bin/xpdf \ 41 - --set QT_QPA_PLATFORM_PLUGIN_PATH ${qtbase.bin}/lib/qt-*/plugins/platforms 42 ''; 43 44 meta = {
··· 1 { enableGUI ? true, enablePDFtoPPM ? true, useT1Lib ? false 2 , stdenv, fetchurl, zlib, libpng, freetype ? null, t1lib ? null 3 + , cmake, qtbase ? null, qtsvg ? null, makeWrapper 4 }: 5 6 + assert enableGUI -> qtbase != null && qtsvg != null && freetype != null; 7 assert enablePDFtoPPM -> freetype != null; 8 assert useT1Lib -> t1lib != null; 9 ··· 38 39 postInstall = stdenv.lib.optionalString stdenv.isDarwin '' 40 wrapProgram $out/bin/xpdf \ 41 + --set QT_PLUGIN_PATH ${qtbase.bin}/${qtbase.qtPluginPrefix}:${qtsvg.bin}/${qtbase.qtPluginPrefix} 42 ''; 43 44 meta = {