nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 61 lines 1.4 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 doctest, 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "xsimd"; 11 version = "13.2.0"; 12 13 src = fetchFromGitHub { 14 owner = "xtensor-stack"; 15 repo = "xsimd"; 16 tag = finalAttrs.version; 17 hash = "sha256-L4ttJxP46uNwQAEUMoJ8rsc51Le2GeIGbT1kX7ZzcPA="; 18 }; 19 20 patches = lib.optionals stdenv.hostPlatform.isDarwin [ 21 # https://github.com/xtensor-stack/xsimd/issues/1030 22 ./disable-test_error_gamma.patch 23 24 # https://github.com/xtensor-stack/xsimd/issues/1063 25 ./relax-asin-precision.diff 26 ]; 27 28 # strictDeps raises the chance that xsimd will be able to be cross compiled 29 strictDeps = true; 30 31 nativeBuildInputs = [ 32 cmake 33 ]; 34 35 buildInputs = [ 36 doctest 37 ]; 38 39 cmakeFlags = [ 40 # Always build the tests, even if not running them, because testing whether 41 # they can be built is a test in itself. 42 "-DBUILD_TESTS=ON" 43 ]; 44 45 doCheck = true; 46 checkTarget = "xtest"; 47 48 meta = { 49 changelog = "https://github.com/xtensor-stack/xsimd/blob/${finalAttrs.version}/Changelog.rst#${ 50 builtins.replaceStrings [ "." ] [ "" ] finalAttrs.version 51 }"; 52 description = "C++ wrappers for SIMD intrinsics"; 53 homepage = "https://github.com/xtensor-stack/xsimd"; 54 license = lib.licenses.bsd3; 55 maintainers = with lib.maintainers; [ 56 tobim 57 doronbehar 58 ]; 59 platforms = lib.platforms.all; 60 }; 61})