Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 fetchFromGitHub, 3 stdenvNoCC, 4 lib, 5 nix-update-script, 6}: 7 8stdenvNoCC.mkDerivation (finalAttrs: { 9 pname = "testlib"; 10 version = "0.9.41"; 11 12 src = fetchFromGitHub { 13 owner = "MikeMirzayanov"; 14 repo = "testlib"; 15 tag = finalAttrs.version; 16 hash = "sha256-AttzDYLDlpfL3Zvds6yBR/m6W/3UZKR+1LVylqOTQcw="; 17 }; 18 19 installPhase = '' 20 runHook preInstall 21 install -Dt $out/include/testlib testlib.h 22 runHook postInstall 23 ''; 24 25 passthru.updateScript = nix-update-script { }; 26 27 meta = { 28 description = "C++ library to develop competitive programming problems"; 29 homepage = "https://github.com/MikeMirzayanov/testlib"; 30 changelog = "https://github.com/MikeMirzayanov/testlib/releases/tag/${finalAttrs.version}"; 31 license = lib.licenses.mit; 32 maintainers = with lib.maintainers; [ bot-wxt1221 ]; 33 platforms = lib.platforms.all; 34 }; 35})