git.iko.soy/typeable/nixpkgs
on master help sign in
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)

commitadaa9d93488c7fc1fee020899cb08ce2f899c94b authorDaiderd Jordan <daiderd@gmail.com> dateTue 27 Mar 2018, 00:14 (9 years ago) parent24560608c7883c
1 file changed+1−1
pkgs/applications/misc/xpdf/default.nix+1−1
pkgs/applications/misc/xpdf/default.nix+1−1
@@ -36,7 +36,7 @@ stdenv.mkDerivation {
3636
3737 hardeningDisable = [ "format" ];
3838
39− postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
39+ postInstall = stdenv.lib.optionalString (stdenv.isDarwin && enableGUI) ''
4040 wrapProgram $out/bin/xpdf \
4141 --set QT_PLUGIN_PATH ${qtbase.bin}/${qtbase.qtPluginPrefix}:${qtsvg.bin}/${qtbase.qtPluginPrefix}
4242 '';