summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/happy-eyeballs/mirage.nix
blob: bc3341a422f829125372294f67b72cfff3ef3bd4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ buildDunePackage
, happy-eyeballs
, duration
, dns-client-mirage
, domain-name
, ipaddr
, fmt
, logs
, lwt
, mirage-clock
, mirage-random
, mirage-time
, tcpip
}:

buildDunePackage {
  pname = "happy-eyeballs-mirage";

  inherit (happy-eyeballs) src version;

  minimalOCamlVersion = "4.08";
  duneVersion = "3";

  buildInputs = [
    duration
    ipaddr
    domain-name
    fmt
    mirage-clock
    mirage-random
    mirage-time
  ];

  propagatedBuildInputs = [
    dns-client-mirage
    happy-eyeballs
    logs
    lwt
    tcpip
  ];

  doCheck = true;

  meta = happy-eyeballs.meta // {
    description = "Connecting to a remote host via IP version 4 or 6 using Mirage";
  };
}