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