2005-08-30 15:50:14 +02:00
|
|
|
{ stdenv, fetchurl, libjpeg, libpng, zlib
|
|
|
|
, x11Support, x11 ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert x11Support -> x11 != null;
|
2005-04-29 15:23:15 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2006-09-04 12:10:21 +02:00
|
|
|
name = "ghostscript-8.54";
|
2005-04-29 15:23:15 +02:00
|
|
|
builder = ./builder.sh;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2006-09-04 12:10:21 +02:00
|
|
|
url = http://surfnet.dl.sourceforge.net/sourceforge/ghostscript/ghostscript-8.54-gpl.tar.bz2;
|
|
|
|
md5 = "5d0ad0da8297fe459a788200f0eaeeba";
|
2005-04-29 15:23:15 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
fonts = [
|
|
|
|
(fetchurl {
|
2006-01-30 17:04:03 +01:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/ghostscript-fonts-std-8.11.tar.gz;
|
2005-04-29 15:23:15 +02:00
|
|
|
md5 = "6865682b095f8c4500c54b285ff05ef6";
|
|
|
|
})
|
|
|
|
# ... add other fonts here
|
|
|
|
];
|
|
|
|
|
2005-08-30 15:50:14 +02:00
|
|
|
buildInputs = [
|
|
|
|
libjpeg libpng zlib
|
|
|
|
(if x11Support then x11 else null)
|
|
|
|
];
|
2005-04-29 15:23:15 +02:00
|
|
|
|
2005-08-30 15:50:14 +02:00
|
|
|
configureFlags = if x11Support then "--with-x" else "--without-x";
|
2005-04-29 15:23:15 +02:00
|
|
|
}
|