git.iko.soy/typeable/nixpkgs
on master help sign in
givaro: Add darwin support
commit2ab014eb17b35b968cfd1746dbe1be1f31e6a738 authorJake Waksbaum <jake.waksbaum@gmail.com> dateMon 13 Aug 2018, 20:13 (8 years ago) parent4c0e250
1 file changed+12−2
pkgs/development/libraries/givaro/default.nix+12−2
pkgs/development/libraries/givaro/default.nix+12−2
@@ -11,8 +11,12 @@ stdenv.mkDerivation rec {
1111 rev = "v${version}";
1212 sha256 = "199p8wyj5i63jbnk7j8qbdbfp5rm2lpmcxyk3mdjy9bz7ygx3hhy";
1313 };
14+
15+ enableParallelBuilding = true;
16+
1417 nativeBuildInputs = [ autoreconfHook ];
1518 buildInputs = [autoconf automake libtool gmpxx];
19+
1620 configureFlags = [
1721 "--disable-optimization"
1822 ] ++ stdenv.lib.optionals (!optimize) [
@@ -28,12 +32,18 @@ stdenv.mkDerivation rec {
2832 "--disable-fma"
2933 "--disable-fma4"
3034 ];
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+
3242 meta = {
3343 inherit version;
3444 description = ''A C++ library for arithmetic and algebraic computations'';
3545 license = stdenv.lib.licenses.cecill-b;
3646 maintainers = [stdenv.lib.maintainers.raskin];
37− platforms = stdenv.lib.platforms.linux;
47+ platforms = stdenv.lib.platforms.unix;
3848 };
3949}