mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 02:44:30 +00:00
* X11 support in Ghostscript.
svn path=/nixpkgs/trunk/; revision=3751
This commit is contained in:
parent
860e14cd3d
commit
e468256879
@ -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";
|
||||
}
|
||||
|
@ -1510,7 +1510,8 @@ rec {
|
||||
};
|
||||
|
||||
ghostscript = (import ../misc/ghostscript) {
|
||||
inherit fetchurl stdenv libjpeg libpng zlib;
|
||||
inherit fetchurl stdenv libjpeg libpng zlib x11;
|
||||
x11Support = false;
|
||||
};
|
||||
|
||||
nix = (import ../misc/nix) {
|
||||
|
Loading…
Reference in New Issue
Block a user