2005-08-30 14:50:14 +01:00
|
|
|
{ stdenv, fetchurl, libjpeg, libpng, zlib
|
|
|
|
, x11Support, x11 ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert x11Support -> x11 != null;
|
2005-04-29 14:23:15 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-05-13 20:21:11 +01:00
|
|
|
name = "ghostscript-8.56";
|
2005-04-29 14:23:15 +01:00
|
|
|
builder = ./builder.sh;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2007-08-27 14:42:00 +01:00
|
|
|
url = mirror://gnu/ghostscript/gnu-ghostscript-8.56.0.tar.bz2;
|
2007-08-09 00:51:33 +01:00
|
|
|
sha256 = "0pfcf59jfl6h8bhwypzxw0zwljssja14d3jc6gczbkab37d33c1x";
|
2005-04-29 14:23:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
fonts = [
|
|
|
|
(fetchurl {
|
2006-01-30 16:04:03 +00:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/ghostscript-fonts-std-8.11.tar.gz;
|
2005-04-29 14:23:15 +01:00
|
|
|
md5 = "6865682b095f8c4500c54b285ff05ef6";
|
|
|
|
})
|
|
|
|
# ... add other fonts here
|
|
|
|
];
|
|
|
|
|
2005-08-30 14:50:14 +01:00
|
|
|
buildInputs = [
|
|
|
|
libjpeg libpng zlib
|
|
|
|
(if x11Support then x11 else null)
|
|
|
|
];
|
2005-04-29 14:23:15 +01:00
|
|
|
|
2006-09-04 12:01:37 +01:00
|
|
|
configureFlags = "
|
|
|
|
${if x11Support then "--with-x" else "--without-x"}
|
|
|
|
";
|
|
|
|
|
|
|
|
# This patch is required to make Ghostscript at least build in a pure
|
|
|
|
# environment (like NixOS). Ghostscript's build process performs
|
|
|
|
# various tests for the existence of files in /usr/include.
|
|
|
|
patches = [ ./purity.patch ];
|
2005-04-29 14:23:15 +01:00
|
|
|
}
|