git.iko.soy/typeable/nixpkgs
on master help sign in
givaro: Add darwin support
2ab014eJake Waksbaum
pkgs/development/libraries/givaro/default.nix+12−2
@@ -11,8 +11,12 @@ stdenv.mkDerivation rec {
11 rev = "v${version}";
11 rev = "v${version}";
12 sha256 = "199p8wyj5i63jbnk7j8qbdbfp5rm2lpmcxyk3mdjy9bz7ygx3hhy";
12 sha256 = "199p8wyj5i63jbnk7j8qbdbfp5rm2lpmcxyk3mdjy9bz7ygx3hhy";
13 };
13 };
14+
15+ enableParallelBuilding = true;
16+
14 nativeBuildInputs = [ autoreconfHook ];
17 nativeBuildInputs = [ autoreconfHook ];
15 buildInputs = [autoconf automake libtool gmpxx];
18 buildInputs = [autoconf automake libtool gmpxx];
19+
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"
30 ];
34 ];
31− doCheck = true;
35+
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";
40+ doCheck = false;
41+
32 meta = {
42 meta = {
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;
38 };
48 };
39}
49}