Merge pull request #45001 from jbaum98/givaro-darwin
givaro: Add darwin support
This commit is contained in:
commit
ad71d9b0d5
@ -11,8 +11,12 @@ stdenv.mkDerivation rec {
|
|||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "199p8wyj5i63jbnk7j8qbdbfp5rm2lpmcxyk3mdjy9bz7ygx3hhy";
|
sha256 = "199p8wyj5i63jbnk7j8qbdbfp5rm2lpmcxyk3mdjy9bz7ygx3hhy";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
buildInputs = [autoconf automake libtool gmpxx];
|
buildInputs = [autoconf automake libtool gmpxx];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--disable-optimization"
|
"--disable-optimization"
|
||||||
] ++ stdenv.lib.optionals (!optimize) [
|
] ++ stdenv.lib.optionals (!optimize) [
|
||||||
@ -28,12 +32,18 @@ stdenv.mkDerivation rec {
|
|||||||
"--disable-fma"
|
"--disable-fma"
|
||||||
"--disable-fma4"
|
"--disable-fma4"
|
||||||
];
|
];
|
||||||
doCheck = true;
|
|
||||||
|
# On darwin, tests are linked to dylib in the nix store, so we need to make
|
||||||
|
# sure tests run after installPhase.
|
||||||
|
doInstallCheck = true;
|
||||||
|
installCheckTarget = "check";
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
inherit version;
|
inherit version;
|
||||||
description = ''A C++ library for arithmetic and algebraic computations'';
|
description = ''A C++ library for arithmetic and algebraic computations'';
|
||||||
license = stdenv.lib.licenses.cecill-b;
|
license = stdenv.lib.licenses.cecill-b;
|
||||||
maintainers = [stdenv.lib.maintainers.raskin];
|
maintainers = [stdenv.lib.maintainers.raskin];
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user