diff options
Diffstat (limited to 'pkgs/misc/ghostscript/default.nix')
-rw-r--r-- | pkgs/misc/ghostscript/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/misc/ghostscript/default.nix b/pkgs/misc/ghostscript/default.nix index 9d02a2a01e83..372cd568f4e0 100644 --- a/pkgs/misc/ghostscript/default.nix +++ b/pkgs/misc/ghostscript/default.nix @@ -26,5 +26,12 @@ stdenv.mkDerivation { (if x11Support then x11 else null) ]; - configureFlags = if x11Support then "--with-x" else "--without-x"; + 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 ]; } |