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