ghostscript: move defaults to package file
This commit is contained in:
parent
5da88a18c9
commit
d064592f36
|
@ -1,12 +1,13 @@
|
||||||
{ stdenv, lib, fetchurl, pkgconfig, zlib, expat, openssl, autoconf
|
{ config, stdenv, lib, fetchurl, pkgconfig, zlib, expat, openssl, autoconf
|
||||||
, libjpeg, libpng, libtiff, freetype, fontconfig, libpaper, jbig2dec
|
, libjpeg, libpng, libtiff, freetype, fontconfig, libpaper, jbig2dec
|
||||||
, libiconv, ijs
|
, libiconv, ijs
|
||||||
, x11Support ? false, xlibsWrapper ? null
|
, cupsSupport ? config.ghostscript.cups or (!stdenv.isDarwin), cups ? null
|
||||||
, cupsSupport ? false, cups ? null
|
, x11Support ? cupsSupport, xlibsWrapper ? null # with CUPS, X11 only adds very little
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert x11Support -> xlibsWrapper != null;
|
assert x11Support -> xlibsWrapper != null;
|
||||||
assert cupsSupport -> cups != null;
|
assert cupsSupport -> cups != null;
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "9.${ver_min}";
|
version = "9.${ver_min}";
|
||||||
ver_min = "26";
|
ver_min = "26";
|
||||||
|
|
|
@ -22347,10 +22347,7 @@ in
|
||||||
|
|
||||||
gensgs = pkgsi686Linux.callPackage ../misc/emulators/gens-gs { };
|
gensgs = pkgsi686Linux.callPackage ../misc/emulators/gens-gs { };
|
||||||
|
|
||||||
ghostscript = callPackage ../misc/ghostscript rec {
|
ghostscript = callPackage ../misc/ghostscript { };
|
||||||
cupsSupport = config.ghostscript.cups or (!stdenv.isDarwin);
|
|
||||||
x11Support = cupsSupport; # with CUPS, X11 only adds very little
|
|
||||||
};
|
|
||||||
|
|
||||||
ghostscriptX = appendToName "with-X" (ghostscript.override {
|
ghostscriptX = appendToName "with-X" (ghostscript.override {
|
||||||
cupsSupport = true;
|
cupsSupport = true;
|
||||||
|
|
Loading…
Reference in a new issue