Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

givaro: Add darwin support

+12 -2
+12 -2
pkgs/development/libraries/givaro/default.nix
··· 11 11 rev = "v${version}"; 12 12 sha256 = "199p8wyj5i63jbnk7j8qbdbfp5rm2lpmcxyk3mdjy9bz7ygx3hhy"; 13 13 }; 14 + 15 + enableParallelBuilding = true; 16 + 14 17 nativeBuildInputs = [ autoreconfHook ]; 15 18 buildInputs = [autoconf automake libtool gmpxx]; 19 + 16 20 configureFlags = [ 17 21 "--disable-optimization" 18 22 ] ++ stdenv.lib.optionals (!optimize) [ ··· 28 32 "--disable-fma" 29 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 42 meta = { 33 43 inherit version; 34 44 description = ''A C++ library for arithmetic and algebraic computations''; 35 45 license = stdenv.lib.licenses.cecill-b; 36 46 maintainers = [stdenv.lib.maintainers.raskin]; 37 - platforms = stdenv.lib.platforms.linux; 47 + platforms = stdenv.lib.platforms.unix; 38 48 }; 39 49 }