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";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.7.7";
|
2021-06-06 07:54:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xtensor-stack";
|
|
|
|
repo = "xtl";
|
|
|
|
rev = version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-f8qYh8ibC/ToHsUv3OF1ujzt3fUe7kW9cNpGyLqsgqw=";
|
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;
|
|
|
|
};
|
|
|
|
}
|