1{
2 lib,
3 buildDunePackage,
4 fetchurl,
5 alcotest,
6 domain-name,
7 duration,
8 gmap,
9 ipaddr,
10 logs,
11 lru,
12 metrics,
13 ptime,
14 fmt,
15 base64,
16 ohex,
17}:
18
19buildDunePackage rec {
20 pname = "dns";
21 version = "10.0.0";
22
23 minimalOCamlVersion = "4.13";
24
25 src = fetchurl {
26 url = "https://github.com/mirage/ocaml-dns/releases/download/v${version}/dns-${version}.tbz";
27 hash = "sha256-dPO9BjvTE0UrpxKrmtgPrgfV/2uG/E9Wd/BNYSMtFwI=";
28 };
29
30 propagatedBuildInputs = [
31 fmt
32 logs
33 ptime
34 domain-name
35 gmap
36 ipaddr
37 lru
38 duration
39 metrics
40 base64
41 ohex
42 ];
43
44 doCheck = true;
45 checkInputs = [ alcotest ];
46
47 meta = {
48 description = "Domain Name System (DNS) library";
49 homepage = "https://github.com/mirage/ocaml-dns";
50 license = lib.licenses.bsd2;
51 maintainers = [ lib.maintainers.vbgl ];
52 };
53
54}