mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 00:53:12 +03:00
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:
parent
71d19afafd
commit
fc961af360
@ -41,10 +41,10 @@ let
|
||||
};
|
||||
|
||||
mainlineSrc = rec {
|
||||
name = "ghostscript-9.10";
|
||||
name = "ghostscript-9.06";
|
||||
src = fetchurl {
|
||||
url = "http://downloads.ghostscript.com/public/${name}.tar.bz2";
|
||||
sha256 = "106mglk77dhdra1m0ddnmaq645xj1aj45qvlh8izv3xx4cdrv3bc";
|
||||
sha256 = "014f10rxn4ihvcr1frby4szd1jvkrwvmdhnbivpp55c9fssx3b05";
|
||||
};
|
||||
meta = meta_common // {
|
||||
homepage = "http://www.ghostscript.com/";
|
||||
@ -79,10 +79,13 @@ stdenv.mkDerivation rec {
|
||||
# ... add other fonts here
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
pkgconfig zlib expat openssl
|
||||
libjpeg libpng libtiff freetype fontconfig lcms2 libpaper jbig2dec
|
||||
] ++ stdenv.lib.optional x11Support x11
|
||||
enableParallelBuilding = true;
|
||||
|
||||
buildInputs =
|
||||
[ pkgconfig zlib expat openssl
|
||||
libjpeg libpng libtiff freetype fontconfig lcms2 libpaper jbig2dec
|
||||
]
|
||||
++ stdenv.lib.optional x11Support x11
|
||||
++ stdenv.lib.optional cupsSupport cups
|
||||
++ libiconvOrEmpty
|
||||
# [] # maybe sometimes jpeg2000 support
|
||||
@ -102,11 +105,11 @@ stdenv.mkDerivation rec {
|
||||
makeFlagsArray=(CUPSSERVERBIN=$out/lib/cups CUPSSERVERROOT=$out/etc/cups CUPSDATA=$out/share/cups)
|
||||
'' + stdenv.lib.optionalString (variant ? preConfigure) variant.preConfigure;
|
||||
|
||||
configureFlags = [
|
||||
"--with-system-libtiff"
|
||||
(if x11Support then "--with-x" else "--without-x")
|
||||
(if cupsSupport then "--enable-cups" else "--disable-cups")
|
||||
];
|
||||
configureFlags =
|
||||
[ "--with-system-libtiff"
|
||||
(if x11Support then "--with-x" else "--without-x")
|
||||
(if cupsSupport then "--enable-cups --with-install-cups" else "--disable-cups")
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user