summary refs log tree commit diff
path: root/pkgs/misc/ghostscript/default.nix
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2012-01-11 23:14:07 +0000
committerPeter Simons <simons@cryp.to>2012-01-11 23:14:07 +0000
commit1aaf70f4d74fcdc255b62b659c5d38f80694eb12 (patch)
tree8c62705837c89515f390df6a95c15b73dd950be2 /pkgs/misc/ghostscript/default.nix
parent9cea0dd1c69a149f8e0353d0b90a5bfe3f95c6ba (diff)
downloadnixlib-1aaf70f4d74fcdc255b62b659c5d38f80694eb12.tar
nixlib-1aaf70f4d74fcdc255b62b659c5d38f80694eb12.tar.gz
nixlib-1aaf70f4d74fcdc255b62b659c5d38f80694eb12.tar.bz2
nixlib-1aaf70f4d74fcdc255b62b659c5d38f80694eb12.tar.lz
nixlib-1aaf70f4d74fcdc255b62b659c5d38f80694eb12.tar.xz
nixlib-1aaf70f4d74fcdc255b62b659c5d38f80694eb12.tar.zst
nixlib-1aaf70f4d74fcdc255b62b659c5d38f80694eb12.zip
ghostscript: CUPS support is no longer enabled by default in version 9.x
We must explicitly give the "--with-install-cups" option at configure time to
get the gstoraster filter installed.

svn path=/nixpkgs/trunk/; revision=31487
Diffstat (limited to 'pkgs/misc/ghostscript/default.nix')
-rw-r--r--pkgs/misc/ghostscript/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/misc/ghostscript/default.nix b/pkgs/misc/ghostscript/default.nix
index c29f7c4456f8..bcb4614674cd 100644
--- a/pkgs/misc/ghostscript/default.nix
+++ b/pkgs/misc/ghostscript/default.nix
@@ -85,7 +85,9 @@ stdenv.mkDerivation rec {
     makeFlagsArray=(CUPSSERVERBIN=$out/lib/cups CUPSSERVERROOT=$out/etc/cups CUPSDATA=$out/share/cups)
   '';
 
-  configureFlags = if x11Support then [ "--with-x" ] else [ "--without-x" ];
+  configureFlags =
+    (if x11Support then [ "--with-x" ] else [ "--without-x" ]) ++
+    (if cupsSupport then [ "--enable-cups" "--with-install-cups" ] else [ "--disable-cups" ]);
 
   doCheck = true;