depot/third_party/nixpkgs/pkgs/development/libraries/xtl/default.nix
Default email 14e964f59b Project import generated by Copybara.
GitOrigin-RevId: fbfb79400a08bf754e32b4d4fc3f7d8f8055cf94
2021-06-06 04:54:09 -03:00

33 lines
713 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, gtest
}:
stdenv.mkDerivation rec {
pname = "xtl";
version = "0.7.2";
src = fetchFromGitHub {
owner = "xtensor-stack";
repo = "xtl";
rev = version;
sha256 = "177ym67sz544wdylksfkkpi6bqn34kagycfnb3cv0nkmpipqj9lg";
};
nativeBuildInputs = [ cmake ];
cmakeFlags = [ "-DBUILD_TESTS=ON" ];
doCheck = true;
checkInputs = [ gtest ];
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;
};
}