nixpkgs/pkgs/misc/ghostscript/default.nix
Eelco Dolstra 3389f4bc36 * Copy lots of files to nix.cs.uu.nl.
svn path=/nixpkgs/trunk/; revision=4623
2006-01-30 16:04:03 +00:00

31 lines
686 B
Nix

{ stdenv, fetchurl, libjpeg, libpng, zlib
, x11Support, x11 ? null
}:
assert x11Support -> x11 != null;
stdenv.mkDerivation {
name = "ghostscript-8.15";
builder = ./builder.sh;
src = fetchurl {
url = http://nix.cs.uu.nl/dist/tarballs/ghostscript-8.15.tar.bz2;
md5 = "ab8502f30629b730e0c9ca56b88a6b9d";
};
fonts = [
(fetchurl {
url = http://nix.cs.uu.nl/dist/tarballs/ghostscript-fonts-std-8.11.tar.gz;
md5 = "6865682b095f8c4500c54b285ff05ef6";
})
# ... add other fonts here
];
buildInputs = [
libjpeg libpng zlib
(if x11Support then x11 else null)
];
configureFlags = if x11Support then "--with-x" else "--without-x";
}