3
0
Fork 0
forked from mirrors/nixpkgs

ghostscript: Revert to 9.06

The newer version breaks printing to non-Postscript printers (e.g. HP
Deskjets).  This is because the gstoraster and gstopxl filters were
removed.  They are now in a package named "cups-filters" that we don't
have yet.
This commit is contained in:
Eelco Dolstra 2013-09-26 17:00:12 +02:00
parent 71d19afafd
commit fc961af360

View file

@ -41,10 +41,10 @@ let
}; };
mainlineSrc = rec { mainlineSrc = rec {
name = "ghostscript-9.10"; name = "ghostscript-9.06";
src = fetchurl { src = fetchurl {
url = "http://downloads.ghostscript.com/public/${name}.tar.bz2"; url = "http://downloads.ghostscript.com/public/${name}.tar.bz2";
sha256 = "106mglk77dhdra1m0ddnmaq645xj1aj45qvlh8izv3xx4cdrv3bc"; sha256 = "014f10rxn4ihvcr1frby4szd1jvkrwvmdhnbivpp55c9fssx3b05";
}; };
meta = meta_common // { meta = meta_common // {
homepage = "http://www.ghostscript.com/"; homepage = "http://www.ghostscript.com/";
@ -79,10 +79,13 @@ stdenv.mkDerivation rec {
# ... add other fonts here # ... add other fonts here
]; ];
buildInputs = [ enableParallelBuilding = true;
pkgconfig zlib expat openssl
libjpeg libpng libtiff freetype fontconfig lcms2 libpaper jbig2dec buildInputs =
] ++ stdenv.lib.optional x11Support x11 [ pkgconfig zlib expat openssl
libjpeg libpng libtiff freetype fontconfig lcms2 libpaper jbig2dec
]
++ stdenv.lib.optional x11Support x11
++ stdenv.lib.optional cupsSupport cups ++ stdenv.lib.optional cupsSupport cups
++ libiconvOrEmpty ++ libiconvOrEmpty
# [] # maybe sometimes jpeg2000 support # [] # maybe sometimes jpeg2000 support
@ -102,11 +105,11 @@ stdenv.mkDerivation rec {
makeFlagsArray=(CUPSSERVERBIN=$out/lib/cups CUPSSERVERROOT=$out/etc/cups CUPSDATA=$out/share/cups) makeFlagsArray=(CUPSSERVERBIN=$out/lib/cups CUPSSERVERROOT=$out/etc/cups CUPSDATA=$out/share/cups)
'' + stdenv.lib.optionalString (variant ? preConfigure) variant.preConfigure; '' + stdenv.lib.optionalString (variant ? preConfigure) variant.preConfigure;
configureFlags = [ configureFlags =
"--with-system-libtiff" [ "--with-system-libtiff"
(if x11Support then "--with-x" else "--without-x") (if x11Support then "--with-x" else "--without-x")
(if cupsSupport then "--enable-cups" else "--disable-cups") (if cupsSupport then "--enable-cups --with-install-cups" else "--disable-cups")
]; ];
doCheck = true; doCheck = true;