@@ -1,7 +1,9 @@
1−{ stdenv, fetchurl, python, cairomm, sparsehash, pycairo, autoreconfHook,
2−pkgconfig, boost, expat, scipy, cgal, gmp, mpfr,
3−gobject-introspection, pygobject3, gtk3, matplotlib, ncurses,
4−buildPythonPackage }:
1+{ stdenv, fetchurl, python, cairomm, sparsehash, pycairo, autoreconfHook
2+, pkgconfig, boost, expat, scipy, cgal, gmp, mpfr
3+, gobject-introspection, pygobject3, gtk3, matplotlib, ncurses
4+, buildPythonPackage
5+, fetchpatch
6+}:
57
68buildPythonPackage rec {
79 pname = "graph-tool";
@@ -20,6 +22,15 @@ buildPythonPackage rec {
2022 sha256 = "0w7pd2h8ayr88kjl82c8fdshnk6f3xslc77gy7ma09zkbvf76qnz";
2123 };
2224
25+ patches = [
26+ # fix build with cgal 4.13 (https://git.skewed.de/count0/graph-tool/issues/509)
27+ (fetchpatch {
28+ name = "cgal-4.13.patch";
29+ url = "https://git.skewed.de/count0/graph-tool/commit/aa39e4a6b42d43fac30c841d176c75aff92cc01a.patch";
30+ sha256 = "1578inb4jqwq2fhhwscn5z95nzmaxvmvk30nzs5wirr26iznap4m";
31+ })
32+ ];
33+
2334 configureFlags = [
2435 "--with-python-module-path=$(out)/${python.sitePackages}"
2536 "--with-boost-libdir=${boost}/lib"