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