@@ -1,4 +1,5 @@
11{ stdenv, fetchFromGitHub, autoreconfHook, givaro, pkgconfig, blas
2+, fetchpatch
23, gmpxx
34, optimize ? false # impure
45}:
@@ -14,6 +15,15 @@ stdenv.mkDerivation rec {
1415 sha256 = "1cqhassj2dny3gx0iywvmnpq8ca0d6m82xl5rz4mb8gaxr2kwddl";
1516 };
1617
18+ patches = [
19+ # https://github.com/linbox-team/fflas-ffpack/issues/146
20+ (fetchpatch {
21+ name = "fix-flaky-test-fgemm-check.patch";
22+ url = "https://github.com/linbox-team/fflas-ffpack/commit/d8cd67d91a9535417a5cb193cf1540ad6758a3db.patch";
23+ sha256 = "1gnfc616fvnlr0smvz6lb2d445vn8fgv6vqcr6pwm3dj4wa6v3b3";
24+ })
25+ ];
26+
1727 checkInputs = [
1828 gmpxx
1929 ];