diff options
author | Vincenzo Mantova <xworld21@users.sf.net> | 2021-05-23 19:04:07 +0100 |
---|---|---|
committer | Vincenzo Mantova <xworld21@users.sf.net> | 2021-06-21 08:17:11 +0100 |
commit | b88e8d999c52d0cdff3bb3283f85b500b7c0832e (patch) | |
tree | da766f67221d8c327a31efe356564eaed23e7717 | |
parent | 8fb57a90eb5cb0ed855a8dba71f09b349e1e4a55 (diff) |
eukleides: allow PostScript transparency
-rw-r--r-- | pkgs/applications/science/math/eukleides/default.nix | 8 | ||||
-rw-r--r-- | pkgs/applications/science/math/eukleides/gs-allowpstransparency.patch | 10 |
2 files changed, 16 insertions, 2 deletions
diff --git a/pkgs/applications/science/math/eukleides/default.nix b/pkgs/applications/science/math/eukleides/default.nix index e96438b5b3e27..12226abdfca48 100644 --- a/pkgs/applications/science/math/eukleides/default.nix +++ b/pkgs/applications/science/math/eukleides/default.nix @@ -9,8 +9,12 @@ lib.fix (eukleides: stdenv.mkDerivation rec { sha256 = "0s8cyh75hdj89v6kpm3z24i48yzpkr8qf0cwxbs9ijxj1i38ki0q"; }; - # use $CC instead of hardcoded gcc - patches = [ ./use-CC.patch ]; + patches = [ + # use $CC instead of hardcoded gcc + ./use-CC.patch + # allow PostScript transparency in epstopdf call + ./gs-allowpstransparency.patch + ]; nativeBuildInputs = [ bison flex texinfo makeWrapper ]; diff --git a/pkgs/applications/science/math/eukleides/gs-allowpstransparency.patch b/pkgs/applications/science/math/eukleides/gs-allowpstransparency.patch new file mode 100644 index 0000000000000..aa92e6cc9fa7d --- /dev/null +++ b/pkgs/applications/science/math/eukleides/gs-allowpstransparency.patch @@ -0,0 +1,10 @@ +--- a/bash/euktopdf ++++ b/bash/euktopdf +@@ -55,6 +55,6 @@ do + exit 1 + fi + dvips -q -E -o $base.eps $base.dvi && +- epstopdf $base.eps && ++ epstopdf --gsopt=-dALLOWPSTRANSPARENCY $base.eps && + rm -f $base.{tex,log,dvi,eps} + done |