1{
2 lib,
3 fetchurl,
4 buildDunePackage,
5 h2,
6 h1,
7 mimic-happy-eyeballs,
8 paf,
9 tcpip,
10 x509,
11 alcotest-lwt,
12 mirage-crypto-rng,
13}:
14
15buildDunePackage rec {
16 pname = "http-mirage-client";
17 version = "0.0.10";
18
19 minimalOCamlVersion = "4.08";
20
21 src = fetchurl {
22 url = "https://github.com/roburio/http-mirage-client/releases/download/v${version}/http-mirage-client-${version}.tbz";
23 hash = "sha256-AXEIH1TIAayD4LkFv0yGD8OYvcdC/AJnGudGlkjcWLY=";
24 };
25
26 propagatedBuildInputs = [
27 h2
28 h1
29 mimic-happy-eyeballs
30 paf
31 tcpip
32 x509
33 ];
34
35 doCheck = true;
36 checkInputs = [
37 alcotest-lwt
38 mirage-crypto-rng
39 ];
40
41 meta = {
42 description = "HTTP client for MirageOS";
43 homepage = "https://github.com/roburio/http-mirage-client";
44 license = lib.licenses.mit;
45 maintainers = [ lib.maintainers.vbgl ];
46 };
47
48}