mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
Merge pull request #12767 from abbradar/asymptote-fixes
Asymptote fixes
This commit is contained in:
commit
770ba80479
@ -1,6 +1,6 @@
|
|||||||
{stdenv, fetchurl
|
{stdenv, fetchurl
|
||||||
, freeglut, ghostscriptX, imagemagick, fftw
|
, freeglut, ghostscriptX, imagemagick, fftw
|
||||||
, boehmgc, mesa, ncurses, readline, gsl, libsigsegv
|
, boehmgc, mesa_glu, mesa_noglu, ncurses, readline, gsl, libsigsegv
|
||||||
, python, zlib, perl, texLive, texinfo, xz
|
, python, zlib, perl, texLive, texinfo, xz
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@ -15,30 +15,39 @@ let
|
|||||||
};
|
};
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
freeglut ghostscriptX imagemagick fftw
|
freeglut ghostscriptX imagemagick fftw
|
||||||
boehmgc mesa ncurses readline gsl libsigsegv
|
boehmgc mesa_glu mesa_noglu mesa_noglu.osmesa ncurses readline gsl libsigsegv
|
||||||
python zlib perl texLive texinfo xz
|
python zlib perl texLive texinfo xz
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
inherit (s) name version;
|
inherit (s) name version;
|
||||||
inherit buildInputs;
|
inherit buildInputs;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
inherit (s) url sha256;
|
inherit (s) url sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
export HOME="$PWD"
|
export HOME="$PWD"
|
||||||
patchShebangs .
|
patchShebangs .
|
||||||
sed -e 's@epswrite@eps2write@g' -i runlabel.in
|
sed -e 's@epswrite@eps2write@g' -i runlabel.in
|
||||||
xz -d < ${texinfo.src} | tar --wildcards -x texinfo-'*'/doc/texinfo.tex
|
xz -d < ${texinfo.src} | tar --wildcards -x texinfo-'*'/doc/texinfo.tex
|
||||||
cp texinfo-*/doc/texinfo.tex doc/
|
cp texinfo-*/doc/texinfo.tex doc/
|
||||||
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${boehmgc}/include/gc"
|
rm *.tar.gz
|
||||||
|
configureFlags="$configureFlags --with-latex=$out/share/texmf/tex/latex --with-context=$out/share/texmf/tex/context/third"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
NIX_CFLAGS_COMPILE = [ "-I${boehmgc}/include/gc" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mv -v "$out/share/info/asymptote/"*.info $out/share/info/
|
mv -v "$out/share/info/asymptote/"*.info $out/share/info/
|
||||||
sed -i -e 's|(asymptote/asymptote)|(asymptote)|' $out/share/info/asymptote.info
|
sed -i -e 's|(asymptote/asymptote)|(asymptote)|' $out/share/info/asymptote.info
|
||||||
rmdir $out/share/info/asymptote
|
rmdir $out/share/info/asymptote
|
||||||
rm $out/share/info/dir
|
rm $out/share/info/dir
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
inherit (s) version;
|
inherit (s) version;
|
||||||
description = "A tool for programming graphics intended to replace Metapost";
|
description = "A tool for programming graphics intended to replace Metapost";
|
||||||
|
Loading…
Reference in New Issue
Block a user