nixpkgs/pkgs/by-name/xt/xtl/package.nix

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

34 lines
720 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
}:
stdenv.mkDerivation rec {
pname = "xtl";
2023-12-25 06:04:52 +00:00
version = "0.7.7";
2021-06-01 11:38:01 +00:00
src = fetchFromGitHub {
owner = "xtensor-stack";
repo = "xtl";
rev = version;
2023-12-25 06:04:52 +00:00
hash = "sha256-f8qYh8ibC/ToHsUv3OF1ujzt3fUe7kW9cNpGyLqsgqw=";
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;
};
}