2021-06-06 07:54:09 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2023-02-02 18:25:31 +00:00
|
|
|
, doctest
|
2021-06-06 07:54:09 +00:00
|
|
|
, gtest
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xtl";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "0.7.5";
|
2021-06-06 07:54:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xtensor-stack";
|
|
|
|
repo = "xtl";
|
|
|
|
rev = version;
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-Vc1VKOWmG1sAw3UQpNJAhm9PvXSqJ0iO2qLjP6/xjtI=";
|
2021-06-06 07:54:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DBUILD_TESTS=ON" ];
|
|
|
|
|
|
|
|
doCheck = true;
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ doctest ];
|
2021-06-06 07:54:09 +00:00
|
|
|
checkTarget = "xtest";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Basic tools (containers, algorithms) used by other quantstack packages";
|
|
|
|
homepage = "https://github.com/xtensor-stack/xtl";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ cpcloud ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|