nixpkgs/pkgs/development/libraries/xtl/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
728 B
Nix
Raw Normal View History

2021-06-01 11:38:01 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
2023-01-28 09:44:12 +00:00
, doctest
2021-06-01 11:38:01 +00:00
, gtest
}:
stdenv.mkDerivation rec {
pname = "xtl";
2023-01-28 09:44:12 +00:00
version = "0.7.5";
2021-06-01 11:38:01 +00:00
src = fetchFromGitHub {
owner = "xtensor-stack";
repo = "xtl";
rev = version;
2023-01-28 09:44:12 +00:00
hash = "sha256-Vc1VKOWmG1sAw3UQpNJAhm9PvXSqJ0iO2qLjP6/xjtI=";
2021-06-01 11:38:01 +00:00
};
nativeBuildInputs = [ cmake ];
cmakeFlags = [ "-DBUILD_TESTS=ON" ];
doCheck = true;
2023-01-28 09:44:12 +00:00
nativeCheckInputs = [ doctest ];
2021-06-01 11:38:01 +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;
};
}