@@ -11,8 +11,12 @@ stdenv.mkDerivation rec {
11 rev = "v${version}";
11 rev = "v${version}";
12 sha256 = "199p8wyj5i63jbnk7j8qbdbfp5rm2lpmcxyk3mdjy9bz7ygx3hhy";
12 sha256 = "199p8wyj5i63jbnk7j8qbdbfp5rm2lpmcxyk3mdjy9bz7ygx3hhy";
15+ enableParallelBuilding = true;
14 nativeBuildInputs = [ autoreconfHook ];
17 nativeBuildInputs = [ autoreconfHook ];
15 buildInputs = [autoconf automake libtool gmpxx];
18 buildInputs = [autoconf automake libtool gmpxx];
16 configureFlags = [
20 configureFlags = [
17 "--disable-optimization"
21 "--disable-optimization"
18 ] ++ stdenv.lib.optionals (!optimize) [
22 ] ++ stdenv.lib.optionals (!optimize) [
@@ -28,12 +32,18 @@ stdenv.mkDerivation rec {
28 "--disable-fma"
32 "--disable-fma"
29 "--disable-fma4"
33 "--disable-fma4"
36+ # On darwin, tests are linked to dylib in the nix store, so we need to make
37+ # sure tests run after installPhase.
38+ doInstallCheck = true;
39+ installCheckTarget = "check";
33 inherit version;
43 inherit version;
34 description = ''A C++ library for arithmetic and algebraic computations'';
44 description = ''A C++ library for arithmetic and algebraic computations'';
35 license = stdenv.lib.licenses.cecill-b;
45 license = stdenv.lib.licenses.cecill-b;
36 maintainers = [stdenv.lib.maintainers.raskin];
46 maintainers = [stdenv.lib.maintainers.raskin];
37− platforms = stdenv.lib.platforms.linux;
47+ platforms = stdenv.lib.platforms.unix;