diff options
author | Phillip Cloud <cpcloud@gmail.com> | 2021-06-01 07:39:13 -0400 |
---|---|---|
committer | Phillip Cloud <cpcloud@gmail.com> | 2021-06-04 05:43:36 -0400 |
commit | d02e973ed2c53bbaf19e8704f14ec35f7981de3b (patch) | |
tree | 4dc9a21d473d5e08eb939b144b1e142dd0902542 /pkgs | |
parent | 425cfd7de4cdc6ee4a4e08ae2057b3f7c1714e73 (diff) |
xtensor: init at 0.23.10
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/xtensor/default.nix | 36 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/libraries/xtensor/default.nix b/pkgs/development/libraries/xtensor/default.nix new file mode 100644 index 0000000000000..fe978998d6372 --- /dev/null +++ b/pkgs/development/libraries/xtensor/default.nix @@ -0,0 +1,36 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +, gtest +, xsimd +, xtl +}: +stdenv.mkDerivation rec { + pname = "xtensor"; + version = "0.23.10"; + + src = fetchFromGitHub { + owner = "xtensor-stack"; + repo = "xtensor"; + rev = version; + sha256 = "1ayrhyh9x33b87ic01b4jzxc8x27yxpxzya5x54ikazvz8p71n14"; + }; + + nativeBuildInputs = [ cmake ]; + propagatedBuildInputs = [ xtl xsimd ]; + + cmakeFlags = [ "-DBUILD_TESTS=ON" ]; + + doCheck = true; + checkInputs = [ gtest ]; + checkTarget = "xtest"; + + meta = with lib; { + description = "Multi-dimensional arrays with broadcasting and lazy computing."; + homepage = "https://github.com/xtensor-stack/xtensor"; + license = licenses.bsd3; + maintainers = with maintainers; [ cpcloud ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8294ff9ad8a8c..3fbb8b049f601 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18604,6 +18604,8 @@ in xsimd = callPackage ../development/libraries/xsimd { }; + xtensor = callPackage ../development/libraries/xtensor { }; + xtl = callPackage ../development/libraries/xtl { }; xvidcore = callPackage ../development/libraries/xvidcore { }; |