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