summary refs log tree commit diff
path: root/pkgs/misc/ghostscript
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2005-08-30 13:50:14 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2005-08-30 13:50:14 +0000
commite4682568793da8ae95ffc578c70faa4b3bfe6692 (patch)
tree12b2ef82cb3a9b9e9807b6511e46c23991ca43c8 /pkgs/misc/ghostscript
parent860e14cd3dddd09b7d0e03635b8ec6bec100a918 (diff)
downloadnixpkgs-e4682568793da8ae95ffc578c70faa4b3bfe6692.tar
nixpkgs-e4682568793da8ae95ffc578c70faa4b3bfe6692.tar.gz
nixpkgs-e4682568793da8ae95ffc578c70faa4b3bfe6692.tar.bz2
nixpkgs-e4682568793da8ae95ffc578c70faa4b3bfe6692.tar.lz
nixpkgs-e4682568793da8ae95ffc578c70faa4b3bfe6692.tar.xz
nixpkgs-e4682568793da8ae95ffc578c70faa4b3bfe6692.tar.zst
nixpkgs-e4682568793da8ae95ffc578c70faa4b3bfe6692.zip
* X11 support in Ghostscript.
svn path=/nixpkgs/trunk/; revision=3751
Diffstat (limited to 'pkgs/misc/ghostscript')
-rw-r--r--pkgs/misc/ghostscript/default.nix13
1 files changed, 10 insertions, 3 deletions
diff --git a/pkgs/misc/ghostscript/default.nix b/pkgs/misc/ghostscript/default.nix
index 6397f320424..4183654aebc 100644
--- a/pkgs/misc/ghostscript/default.nix
+++ b/pkgs/misc/ghostscript/default.nix
@@ -1,4 +1,8 @@
-{stdenv, fetchurl, libjpeg, libpng, zlib}:
+{ stdenv, fetchurl, libjpeg, libpng, zlib
+, x11Support, x11 ? null
+}:
+
+assert x11Support -> x11 != null;
 
 stdenv.mkDerivation {
   name = "ghostscript-8.15";
@@ -17,7 +21,10 @@ stdenv.mkDerivation {
     # ... add other fonts here
   ];
 
-  buildInputs = [libjpeg libpng zlib];
+  buildInputs = [
+    libjpeg libpng zlib
+    (if x11Support then x11 else null)
+  ];
 
-  configureFlags = "--without-x";
+  configureFlags = if x11Support then "--with-x" else "--without-x";
 }