diff options
author | mingchuan <ming@culpring.com> | 2022-08-18 20:24:50 -0700 |
---|---|---|
committer | mingchuan <ming@culpring.com> | 2022-08-25 19:57:19 -0700 |
commit | 1c86d5c8a2e44f273649f264eb807f866f882215 (patch) | |
tree | 9fde52e8d7cfeecbea4efba79188be0e4b7d71d1 /pkgs/development/libraries/xsimd/default.nix | |
parent | 0c8ae3d527b094ec2d90f282ba9c2829a1f1a4d2 (diff) |
xsimd: 7.5.0 -> 8.1.0
Diffstat (limited to 'pkgs/development/libraries/xsimd/default.nix')
-rw-r--r-- | pkgs/development/libraries/xsimd/default.nix | 39 |
1 files changed, 9 insertions, 30 deletions
diff --git a/pkgs/development/libraries/xsimd/default.nix b/pkgs/development/libraries/xsimd/default.nix index 745ee9ee3fcee..79bfdf9712ad7 100644 --- a/pkgs/development/libraries/xsimd/default.nix +++ b/pkgs/development/libraries/xsimd/default.nix @@ -1,35 +1,13 @@ { lib, stdenv, fetchFromGitHub, cmake, gtest }: -let - version = "7.5.0"; - - darwin_src = fetchFromGitHub { - owner = "xtensor-stack"; - repo = "xsimd"; - rev = version; - sha256 = "eGAdRSYhf7rbFdm8g1Tz1ZtSVu44yjH/loewblhv9Vs="; - # Avoid requiring apple_sdk. We're doing this here instead of in the patchPhase - # because this source is directly used in arrow-cpp. - # pyconfig.h defines _GNU_SOURCE to 1, so we need to stamp that out too. - # Upstream PR with a better fix: https://github.com/xtensor-stack/xsimd/pull/463 - postFetch = '' - mkdir $out - tar -xf $downloadedFile --directory=$out --strip-components=1 - substituteInPlace $out/include/xsimd/types/xsimd_scalar.hpp \ - --replace 'defined(__APPLE__)' 0 \ - --replace 'defined(_GNU_SOURCE)' 0 - ''; - }; - +stdenv.mkDerivation rec { + pname = "xsimd"; + version = "8.1.0"; src = fetchFromGitHub { owner = "xtensor-stack"; repo = "xsimd"; rev = version; - sha256 = "0c9pq5vz43j99z83w3b9qylfi66mn749k1afpv5cwfxggbxvy63f"; + sha256 = "sha256-Aqs6XJkGjAjGAp0PprabSM4m+32M/UXpSHppCHdzaZk="; }; -in stdenv.mkDerivation { - pname = "xsimd"; - inherit version; - src = if stdenv.hostPlatform.isDarwin then darwin_src else src; nativeBuildInputs = [ cmake ]; @@ -38,13 +16,14 @@ in stdenv.mkDerivation { doCheck = true; checkInputs = [ gtest ]; checkTarget = "xtest"; - GTEST_FILTER = let + GTEST_FILTER = + let # Upstream Issue: https://github.com/xtensor-stack/xsimd/issues/456 filteredTests = lib.optionals stdenv.hostPlatform.isDarwin [ - "error_gamma_test/sse_double.gamma" - "error_gamma_test/avx_double.gamma" + "error_gamma_test/*" ]; - in "-${builtins.concatStringsSep ":" filteredTests}"; + in + "-${builtins.concatStringsSep ":" filteredTests}"; meta = with lib; { description = "C++ wrappers for SIMD intrinsics"; |