diff options
author | Doron Behar <doron.behar@gmail.com> | 2023-07-30 18:47:52 +0300 |
---|---|---|
committer | Doron Behar <doron.behar@gmail.com> | 2023-07-31 10:50:26 +0300 |
commit | 88b2797038045ef81fa9973195b2274902c59ec9 (patch) | |
tree | 770892a31f5c663ba1f7c8500e1fef58a048500d /pkgs/development/libraries/xsimd/default.nix | |
parent | 8bd2ba2f434489a86e7289e024efb33d094dcaf8 (diff) |
xsimd: Fix exp10 darwin build error
Disable tests that fail on Darwin, as also reported upstream.
Diffstat (limited to 'pkgs/development/libraries/xsimd/default.nix')
-rw-r--r-- | pkgs/development/libraries/xsimd/default.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/development/libraries/xsimd/default.nix b/pkgs/development/libraries/xsimd/default.nix index f832c1a257ed3..6330739f3cd6c 100644 --- a/pkgs/development/libraries/xsimd/default.nix +++ b/pkgs/development/libraries/xsimd/default.nix @@ -14,6 +14,18 @@ stdenv.mkDerivation rec { rev = version; sha256 = "sha256-l6IRzndjb95hIcFCCm8zmlNHWtKduqy2t/oml/9Xp+w="; }; + patches = [ + # Ideally, Accelerate/Accelerate.h should be used for this implementation, + # but it doesn't work... Needs a Darwin user to debug this. We apply this + # patch unconditionally, because the #if macros make sure it doesn't + # interfer with the Linux implementations. + ./fix-darwin-exp10-implementation.patch + ] ++ lib.optionals stdenv.isDarwin [ + # Upstream reports: + # https://github.com/xtensor-stack/xsimd/issues/807 + # https://github.com/xtensor-stack/xsimd/issues/917 + ./disable-darwin-failing-tests.patch + ]; nativeBuildInputs = [ cmake |