Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildDunePackage, 4 fetchurl, 5 angstrom, 6 bigstringaf, 7 faraday, 8 httpun-types, 9 alcotest, 10 version ? "1.0.0", 11}: 12 13buildDunePackage { 14 inherit version; 15 16 pname = "h1"; 17 18 src = fetchurl { 19 url = "https://github.com/robur-coop/ocaml-h1/releases/download/v${version}/h1-${version}.tbz"; 20 hash = "sha256-uFHRcNmfHiFmdMAMKiS5KilIwMylf/AoJCfxllrIvRM="; 21 }; 22 23 propagatedBuildInputs = [ 24 angstrom 25 bigstringaf 26 faraday 27 httpun-types 28 ]; 29 30 doCheck = true; 31 checkInputs = [ 32 alcotest 33 ]; 34 35 meta = { 36 description = "High-performance, memory-efficient, and scalable web server for OCaml"; 37 homepage = "https://github.com/robur-coop/ocaml-h1"; 38 maintainers = [ lib.maintainers.vbgl ]; 39 license = lib.licenses.bsd3; 40 }; 41}