lol

Merge pull request #145854 from flurie/fix-blitz-darwin

blitz: fix build for darwin

authored by

Dmitry Kalinkin and committed by
GitHub
b83e188d f22d2c44

+19 -8
+19 -8
pkgs/development/libraries/blitz/default.nix
··· 1 - { stdenv, lib, fetchFromGitHub, pkg-config, gfortran, texinfo, python, boost 2 - # Select SIMD alignment width (in bytes) for vectorization. 1 + { stdenv 2 + , lib 3 + , fetchFromGitHub 4 + , pkg-config 5 + , gfortran 6 + , texinfo 7 + , python 8 + , boost 9 + # Select SIMD alignment width (in bytes) for vectorization. 3 10 , simdWidth ? 1 4 - # Pad arrays to simdWidth by default? 5 - # Note: Only useful if simdWidth > 1 11 + # Pad arrays to simdWidth by default? 12 + # Note: Only useful if simdWidth > 1 6 13 , enablePadding ? false 7 - # Activate serialization through Boost.Serialize? 14 + # Activate serialization through Boost.Serialize? 8 15 , enableSerialization ? true 9 - # Activate test-suite? 10 - # WARNING: Some of the tests require up to 1700MB of memory to compile. 16 + # Activate test-suite? 17 + # WARNING: Some of the tests require up to 1700MB of memory to compile. 11 18 , doCheck ? true 12 19 }: 13 20 ··· 29 36 buildInputs = [ gfortran texinfo boost ]; 30 37 31 38 configureFlags = 32 - [ "--enable-shared" 39 + [ 40 + "--enable-shared" 33 41 "--disable-static" 34 42 "--enable-fortran" 35 43 "--enable-optimize" ··· 44 52 ] ++ optional enablePadding "--enable-array-length-padding" 45 53 ++ optional enableSerialization "--enable-serialization" 46 54 ++ optional stdenv.is64bit "--enable-64bit"; 55 + 56 + # skip broken library name detection 57 + ax_boost_user_serialization_lib = lib.optionalString stdenv.isDarwin "boost_serialization"; 47 58 48 59 enableParallelBuilding = true; 49 60