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