diff options
Diffstat (limited to 'pkgs/misc')
-rw-r--r-- | pkgs/misc/ghostscript/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/misc/ghostscript/default.nix b/pkgs/misc/ghostscript/default.nix index 8df46dd66d4f..cc278d6abe57 100644 --- a/pkgs/misc/ghostscript/default.nix +++ b/pkgs/misc/ghostscript/default.nix @@ -48,6 +48,10 @@ let homepage = http://www.ghostscript.com/; description = "GPL Ghostscript, a PostScript interpreter"; }; + + preConfigure = '' + rm -R libpng jpeg lcms tiff freetype + ''; patches = [ ./purity-9.05.patch ]; }; @@ -85,7 +89,7 @@ stdenv.mkDerivation rec { # Don't install stuff in the Cups store path. makeFlagsArray=(CUPSSERVERBIN=$out/lib/cups CUPSSERVERROOT=$out/etc/cups CUPSDATA=$out/share/cups) - ''; + '' + stdenv.lib.optionalString (variant ? preConfigure) variant.preConfigure; configureFlags = (if x11Support then [ "--with-x" ] else [ "--without-x" ]) ++ |