chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / xs / xsimd / package.nix
blob622f11f400bc6e795de14ce935f0c1d47f7c593e
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , fetchpatch
5 , cmake
6 , doctest
7 }:
9 stdenv.mkDerivation (finalAttrs: {
10   pname = "xsimd";
11   version = "13.0.0";
12   src = fetchFromGitHub {
13     owner = "xtensor-stack";
14     repo = "xsimd";
15     rev = finalAttrs.version;
16     hash = "sha256-qElJYW5QDj3s59L3NgZj5zkhnUMzIP2mBa1sPks3/CE=";
17   };
18   patches = [
19     # Fix of https://github.com/xtensor-stack/xsimd/pull/1024 for
20     # https://github.com/xtensor-stack/xsimd/issues/456 and
21     # https://github.com/xtensor-stack/xsimd/issues/807,
22     (fetchpatch {
23       url = "https://github.com/xtensor-stack/xsimd/commit/c8a87ed6e04b6782f48f94713adfb0cad6c11ddf.patch";
24       hash = "sha256-2/FvBGdqTPcayD7rdHPSzL+F8IYKAfMW0WBJ0cW9EZ0=";
25     })
26   ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
27     # https://github.com/xtensor-stack/xsimd/issues/1030
28     ./disable-test_error_gamma.patch
29   ];
31   # strictDeps raises the chance that xsimd will be able to be cross compiled
32   strictDeps = true;
34   nativeBuildInputs = [
35     cmake
36   ];
38   buildInputs = [
39     doctest
40   ];
42   cmakeFlags = [
43     # Always build the tests, even if not running them, because testing whether
44     # they can be built is a test in itself.
45     "-DBUILD_TESTS=ON"
46   ];
48   doCheck = true;
49   checkTarget = "xtest";
51   meta = with lib; {
52     changelog = "https://github.com/xtensor-stack/xsimd/blob/${finalAttrs.version}/Changelog.rst#${
53       builtins.replaceStrings [ "." ] [ "" ] finalAttrs.version
54     }";
55     description = "C++ wrappers for SIMD intrinsics";
56     homepage = "https://github.com/xtensor-stack/xsimd";
57     license = licenses.bsd3;
58     maintainers = with maintainers; [ tobim doronbehar ];
59     platforms = platforms.all;
60   };