Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 doctest, 7}: 8stdenv.mkDerivation (finalAttrs: { 9 pname = "xtl"; 10 version = "0.8.0"; 11 12 src = fetchFromGitHub { 13 owner = "xtensor-stack"; 14 repo = "xtl"; 15 tag = finalAttrs.version; 16 hash = "sha256-hhXM2fG3Yl4KeEJlOAcNPVLJjKy9vFlI63lhbmIAsT8="; 17 }; 18 19 nativeBuildInputs = [ cmake ]; 20 21 cmakeFlags = [ "-DBUILD_TESTS=ON" ]; 22 23 doCheck = true; 24 nativeCheckInputs = [ doctest ]; 25 checkTarget = "xtest"; 26 27 meta = { 28 description = "Basic tools (containers, algorithms) used by other quantstack packages"; 29 homepage = "https://github.com/xtensor-stack/xtl"; 30 license = lib.licenses.bsd3; 31 maintainers = with lib.maintainers; [ cpcloud ]; 32 platforms = lib.platforms.all; 33 }; 34})