diff options
author | flurie <flurie@gmail.com> | 2021-11-13 23:25:08 -0500 |
---|---|---|
committer | flurie <flurie@gmail.com> | 2021-11-14 23:14:56 -0500 |
commit | 814552782e1f83ee9ad6dcf8d517a8f7897742e9 (patch) | |
tree | cdf778892fef3dd923062ab93c41d99edebfefd5 /pkgs/development/libraries/blitz/default.nix | |
parent | 3c69ccfb2f33cd0b2fa76a7b753c40cdd0cd2ca5 (diff) |
blitz: fix build for darwin
Diffstat (limited to 'pkgs/development/libraries/blitz/default.nix')
-rw-r--r-- | pkgs/development/libraries/blitz/default.nix | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/pkgs/development/libraries/blitz/default.nix b/pkgs/development/libraries/blitz/default.nix index 0b06bfd64834c..c4a983d879ced 100644 --- a/pkgs/development/libraries/blitz/default.nix +++ b/pkgs/development/libraries/blitz/default.nix @@ -1,13 +1,20 @@ -{ stdenv, lib, fetchFromGitHub, pkg-config, gfortran, texinfo, python, boost -# Select SIMD alignment width (in bytes) for vectorization. +{ stdenv +, lib +, fetchFromGitHub +, pkg-config +, gfortran +, texinfo +, python +, boost + # Select SIMD alignment width (in bytes) for vectorization. , simdWidth ? 1 -# Pad arrays to simdWidth by default? -# Note: Only useful if simdWidth > 1 + # Pad arrays to simdWidth by default? + # Note: Only useful if simdWidth > 1 , enablePadding ? false -# Activate serialization through Boost.Serialize? + # Activate serialization through Boost.Serialize? , enableSerialization ? true -# Activate test-suite? -# WARNING: Some of the tests require up to 1700MB of memory to compile. + # Activate test-suite? + # WARNING: Some of the tests require up to 1700MB of memory to compile. , doCheck ? true }: @@ -29,7 +36,8 @@ stdenv.mkDerivation rec { buildInputs = [ gfortran texinfo boost ]; configureFlags = - [ "--enable-shared" + [ + "--enable-shared" "--disable-static" "--enable-fortran" "--enable-optimize" @@ -45,6 +53,9 @@ stdenv.mkDerivation rec { ++ optional enableSerialization "--enable-serialization" ++ optional stdenv.is64bit "--enable-64bit"; + # skip broken library name detection + ax_boost_user_serialization_lib = lib.optionalString stdenv.isDarwin "boost_serialization"; + enableParallelBuilding = true; inherit doCheck; |