Merge pull request #37637 from alexvorobiev/alexvorobiev-xpdf-darwin

xpdf: Don't try to wrap xpdf binary on Darwin if it wasn't requested (enableGUI = false)
This commit is contained in:
Daiderd Jordan 2018-03-27 00:14:01 +02:00 committed by GitHub
commit adaa9d9348
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ stdenv.mkDerivation {
hardeningDisable = [ "format" ];
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
postInstall = stdenv.lib.optionalString (stdenv.isDarwin && enableGUI) ''
wrapProgram $out/bin/xpdf \
--set QT_PLUGIN_PATH ${qtbase.bin}/${qtbase.qtPluginPrefix}:${qtsvg.bin}/${qtbase.qtPluginPrefix}
'';