summary refs log tree commit diff
path: root/pkgs/applications/misc/xpdf
diff options
context:
space:
mode:
authorAlex Vorobiev <alexander.vorobiev@gmail.com>2018-03-22 12:21:12 -0500
committerGitHub <noreply@github.com>2018-03-22 12:21:12 -0500
commit8c7883c027c7e4cecf3d2cf06283100ae6576c13 (patch)
tree130eaf60af15c6f17fb643a2d25160b4cb131794 /pkgs/applications/misc/xpdf
parentd4be6b330e0a61f996aadf5a6cc1b2ad2f18c383 (diff)
downloadnixpkgs-8c7883c027c7e4cecf3d2cf06283100ae6576c13.tar
nixpkgs-8c7883c027c7e4cecf3d2cf06283100ae6576c13.tar.gz
nixpkgs-8c7883c027c7e4cecf3d2cf06283100ae6576c13.tar.bz2
nixpkgs-8c7883c027c7e4cecf3d2cf06283100ae6576c13.tar.lz
nixpkgs-8c7883c027c7e4cecf3d2cf06283100ae6576c13.tar.xz
nixpkgs-8c7883c027c7e4cecf3d2cf06283100ae6576c13.tar.zst
nixpkgs-8c7883c027c7e4cecf3d2cf06283100ae6576c13.zip
Update default.nix
Diffstat (limited to 'pkgs/applications/misc/xpdf')
-rw-r--r--pkgs/applications/misc/xpdf/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/applications/misc/xpdf/default.nix b/pkgs/applications/misc/xpdf/default.nix
index 3b05c9be451..3cb416a5f7c 100644
--- a/pkgs/applications/misc/xpdf/default.nix
+++ b/pkgs/applications/misc/xpdf/default.nix
@@ -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}
   '';