Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchurl, 4 buildDunePackage, 5 alcotest, 6 fmt, 7}: 8 9buildDunePackage rec { 10 pname = "metrics"; 11 version = "0.5.0"; 12 13 minimalOCamlVersion = "4.04"; 14 15 src = fetchurl { 16 url = "https://github.com/mirage/metrics/releases/download/v${version}/metrics-${version}.tbz"; 17 sha256 = "sha256-3zVjgJCdBkYbzQl+9gY8qfPFE2X0dqeXwDZktTwFcV0="; 18 }; 19 20 propagatedBuildInputs = [ fmt ]; 21 22 checkInputs = [ alcotest ]; 23 24 doCheck = true; 25 26 meta = { 27 description = "Metrics infrastructure for OCaml"; 28 homepage = "https://github.com/mirage/metrics"; 29 license = lib.licenses.isc; 30 maintainers = [ lib.maintainers.vbgl ]; 31 }; 32 33}