nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05-pre 33 lines 713 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, cmake 5, gtest 6}: 7stdenv.mkDerivation rec { 8 pname = "xtl"; 9 version = "0.7.2"; 10 11 src = fetchFromGitHub { 12 owner = "xtensor-stack"; 13 repo = "xtl"; 14 rev = version; 15 sha256 = "177ym67sz544wdylksfkkpi6bqn34kagycfnb3cv0nkmpipqj9lg"; 16 }; 17 18 nativeBuildInputs = [ cmake ]; 19 20 cmakeFlags = [ "-DBUILD_TESTS=ON" ]; 21 22 doCheck = true; 23 checkInputs = [ gtest ]; 24 checkTarget = "xtest"; 25 26 meta = with lib; { 27 description = "Basic tools (containers, algorithms) used by other quantstack packages"; 28 homepage = "https://github.com/xtensor-stack/xtl"; 29 license = licenses.bsd3; 30 maintainers = with maintainers; [ cpcloud ]; 31 platforms = platforms.all; 32 }; 33}