eukleides: allow PostScript transparency

This commit is contained in:
Vincenzo Mantova 2021-05-23 19:04:07 +01:00
parent 8fb57a90eb
commit b88e8d999c
2 changed files with 16 additions and 2 deletions

View File

@ -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 ];

View File

@ -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