git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #123242 from xworld21/eukleides-texlive-deps-instead-of-buildinputs
commit5f3ebbc66108d23705a01659f55688d15d7d7428 authorSandro <sandro.jaeckel@gmail.com> dateMon 21 Jun 2021, 11:57 (5 years ago) parent507ff55b0c6bd9
3 files changed+24−17
pkgs/applications/science/math/eukleides/default.nix+13−13 pkgs/applications/science/math/eukleides/gs-allowpstransparency.patch+10 pkgs/top-level/all-packages.nix+1−4
pkgs/applications/science/math/eukleides/default.nix+13−13
@@ -1,4 +1,4 @@
1−{ lib, stdenv, fetchurl, bison, flex, makeWrapper, texinfo, readline, texLive }:
1+{ lib, stdenv, fetchurl, bison, flex, makeWrapper, texinfo4, getopt, readline, texlive }:
22
33lib.fix (eukleides: stdenv.mkDerivation rec {
44 pname = "eukleides";
@@ -9,12 +9,16 @@ lib.fix (eukleides: stdenv.mkDerivation rec {
99 sha256 = "0s8cyh75hdj89v6kpm3z24i48yzpkr8qf0cwxbs9ijxj1i38ki0q";
1010 };
1111
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+ ];
1418
15− nativeBuildInputs = [ bison flex texinfo makeWrapper ];
19+ nativeBuildInputs = [ bison flex texinfo4 makeWrapper ];
1620
17− buildInputs = [ readline texLive ];
21+ buildInputs = [ getopt readline ];
1822
1923 preConfigure = ''
2024 substituteInPlace Makefile \
@@ -34,19 +38,15 @@ lib.fix (eukleides: stdenv.mkDerivation rec {
3438
3539 postInstall = ''
3640 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 ]}
4442 '';
4543
4644 outputs = [ "out" "doc" "tex" ];
4745
4846 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);
5050
5151 meta = {
5252 description = "Geometry Drawing Language";
pkgs/applications/science/math/eukleides/gs-allowpstransparency.patchnew file+10
@@ -0,0 +1,10 @@
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
pkgs/top-level/all-packages.nix+1−4
@@ -30171,10 +30171,7 @@ in
3017130171
3017230172 ecm = callPackage ../applications/science/math/ecm { };
3017330173
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 { };
3017830175
3017930176 form = callPackage ../applications/science/math/form { };
3018030177