diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2005-04-29 13:23:15 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2005-04-29 13:23:15 +0000 |
commit | 01cc75d092902966865bdceaab65a07920d583ae (patch) | |
tree | 163b4593d46e50ad457469b58aafcc157978633c /pkgs/misc/ghostscript | |
parent | 7d876cc771712bb7e1d735c819cea85c031bb0ed (diff) |
* Added GPL Ghostscript 8.15.
svn path=/nixpkgs/trunk/; revision=2941
Diffstat (limited to 'pkgs/misc/ghostscript')
-rw-r--r-- | pkgs/misc/ghostscript/builder.sh | 10 | ||||
-rw-r--r-- | pkgs/misc/ghostscript/default.nix | 23 |
2 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/misc/ghostscript/builder.sh b/pkgs/misc/ghostscript/builder.sh new file mode 100644 index 0000000000000..bd5a302fcb8ea --- /dev/null +++ b/pkgs/misc/ghostscript/builder.sh @@ -0,0 +1,10 @@ +. $stdenv/setup + +postInstall=postInstall +postInstall() { + for i in $fonts; do + (cd $out/share/ghostscript && tar xvfz $i) + done +} + +genericBuild \ No newline at end of file diff --git a/pkgs/misc/ghostscript/default.nix b/pkgs/misc/ghostscript/default.nix new file mode 100644 index 0000000000000..588efb0f77450 --- /dev/null +++ b/pkgs/misc/ghostscript/default.nix @@ -0,0 +1,23 @@ +{stdenv, fetchurl, libjpeg, libpng, zlib}: + +stdenv.mkDerivation { + name = "ghostscript-8.15"; + builder = ./builder.sh; + + src = fetchurl { + url = ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs815/ghostscript-8.15.tar.bz2; + md5 = "ab8502f30629b730e0c9ca56b88a6b9d"; + }; + + fonts = [ + (fetchurl { + url = ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs815/ghostscript-fonts-std-8.11.tar.gz; + md5 = "6865682b095f8c4500c54b285ff05ef6"; + }) + # ... add other fonts here + ]; + + buildInputs = [libjpeg libpng zlib]; + + configureFlags = "--without-x"; +} |