asymptote: apply upstream patch for compatibility with a newer boehmgc

As referenced in https://github.com/NixOS/nixpkgs/pull/45708#issuecomment-427840944
This commit is contained in:
Michael Raskin 2018-10-08 21:37:27 +03:00
parent 21a215059e
commit fe8515de6e
2 changed files with 10 additions and 2 deletions

@ -1,4 +1,4 @@
{stdenv, fetchurl
{stdenv, fetchurl, fetchpatch
, freeglut, ghostscriptX, imagemagick, fftw
, boehmgc, libGLU, libGL, mesa_noglu, ncurses, readline, gsl, libsigsegv
, python, zlib, perl, texLive, texinfo, xz
@ -33,6 +33,15 @@ stdenv.mkDerivation {
inherit (s) url sha256;
};
patches = [
# Remove when updating from 2.47 to 2.48
# Compatibility with BoehmGC 7.6.8
(fetchpatch {
url = "https://github.com/vectorgraphics/asymptote/commit/38a59370dc5ac720c29e1424614a10f7384b943f.patch";
sha256 = "0c3d11hzxxaqh24kfw9y8zvlid54kk40rx2zajx7jwl12gga05s1";
})
];
preConfigure = ''
export HOME="$PWD"
patchShebangs .

@ -569,7 +569,6 @@ with pkgs;
asymptote = callPackage ../tools/graphics/asymptote {
texLive = texlive.combine { inherit (texlive) scheme-small epsf cm-super; };
gsl = gsl_1;
boehmgc = boehmgc_766;
};
atomicparsley = callPackage ../tools/video/atomicparsley { };