Merge pull request #123242 from xworld21/eukleides-texlive-deps-instead-of-buildinputs

authored by Sandro and committed by GitHub 5f3ebbc6 507ff55e

+24 -17
+13 -13
pkgs/applications/science/math/eukleides/default.nix
··· 1 - { lib, stdenv, fetchurl, bison, flex, makeWrapper, texinfo, readline, texLive }: 1 + { lib, stdenv, fetchurl, bison, flex, makeWrapper, texinfo4, getopt, readline, texlive }: 2 2 3 3 lib.fix (eukleides: stdenv.mkDerivation rec { 4 4 pname = "eukleides"; ··· 9 9 sha256 = "0s8cyh75hdj89v6kpm3z24i48yzpkr8qf0cwxbs9ijxj1i38ki0q"; 10 10 }; 11 11 12 - # use $CC instead of hardcoded gcc 13 - patches = [ ./use-CC.patch ]; 12 + patches = [ 13 + # use $CC instead of hardcoded gcc 14 + ./use-CC.patch 15 + # allow PostScript transparency in epstopdf call 16 + ./gs-allowpstransparency.patch 17 + ]; 14 18 15 - nativeBuildInputs = [ bison flex texinfo makeWrapper ]; 19 + nativeBuildInputs = [ bison flex texinfo4 makeWrapper ]; 16 20 17 - buildInputs = [ readline texLive ]; 21 + buildInputs = [ getopt readline ]; 18 22 19 23 preConfigure = '' 20 24 substituteInPlace Makefile \ ··· 34 38 35 39 postInstall = '' 36 40 wrapProgram $out/bin/euktoeps \ 37 - --set-default TEXINPUTS : \ 38 - --prefix TEXINPUTS : "$tex/tex/latex/eukleides" \ 39 - --prefix PATH : "${texLive}/bin" 40 - wrapProgram $out/bin/euktopdf \ 41 - --set-default TEXINPUTS : \ 42 - --prefix TEXINPUTS : "$tex/tex/latex/eukleides" \ 43 - --prefix PATH : "${texLive}/bin" 41 + --prefix PATH : ${lib.makeBinPath [ getopt ]} 44 42 ''; 45 43 46 44 outputs = [ "out" "doc" "tex" ]; 47 45 48 46 passthru.tlType = "run"; 49 - passthru.pkgs = [ eukleides.tex ]; 47 + passthru.pkgs = [ eukleides.tex ] 48 + # packages needed by euktoeps, euktopdf and eukleides.sty 49 + ++ (with texlive; collection-pstricks.pkgs ++ epstopdf.pkgs ++ iftex.pkgs ++ moreverb.pkgs); 50 50 51 51 meta = { 52 52 description = "Geometry Drawing Language";
+10
pkgs/applications/science/math/eukleides/gs-allowpstransparency.patch
··· 1 + --- a/bash/euktopdf 2 + +++ b/bash/euktopdf 3 + @@ -55,6 +55,6 @@ do 4 + exit 1 5 + fi 6 + dvips -q -E -o $base.eps $base.dvi && 7 + - epstopdf $base.eps && 8 + + epstopdf --gsopt=-dALLOWPSTRANSPARENCY $base.eps && 9 + rm -f $base.{tex,log,dvi,eps} 10 + done
+1 -4
pkgs/top-level/all-packages.nix
··· 30171 30171 30172 30172 ecm = callPackage ../applications/science/math/ecm { }; 30173 30173 30174 - eukleides = callPackage ../applications/science/math/eukleides { 30175 - texLive = texlive.combine { inherit (texlive) scheme-small; }; 30176 - texinfo = texinfo4; 30177 - }; 30174 + eukleides = callPackage ../applications/science/math/eukleides { }; 30178 30175 30179 30176 form = callPackage ../applications/science/math/form { }; 30180 30177