2020-04-08 08:19:59 +02:00
|
|
|
{ lib, buildDunePackage, fetchurl, alcotest
|
2022-06-30 07:29:12 +02:00
|
|
|
, cstruct, domain-name, duration, gmap, ipaddr, logs, lru, metrics, ptime, fmt
|
2020-04-08 08:19:59 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "dns";
|
2022-06-30 07:29:12 +02:00
|
|
|
version = "6.1.4";
|
2020-04-08 08:19:59 +02:00
|
|
|
|
2022-06-30 07:29:12 +02:00
|
|
|
minimalOCamlVersion = "4.08";
|
2020-04-08 08:19:59 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-06-30 07:29:12 +02:00
|
|
|
url = "https://github.com/mirage/ocaml-dns/releases/download/v${version}/dns-${version}.tbz";
|
|
|
|
sha256 = "sha256-nO9hRFOQzm3j57S1xTUC/j8ejSB+aDcsw/pOi893kHY=";
|
2020-04-08 08:19:59 +02:00
|
|
|
};
|
|
|
|
|
2022-06-30 07:29:12 +02:00
|
|
|
propagatedBuildInputs = [ fmt logs ptime domain-name gmap cstruct ipaddr lru duration metrics ];
|
2020-04-08 08:19:59 +02:00
|
|
|
|
|
|
|
doCheck = true;
|
2022-06-30 07:29:12 +02:00
|
|
|
checkInputs = [ alcotest ];
|
2020-04-08 08:19:59 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An Domain Name System (DNS) library";
|
|
|
|
homepage = "https://github.com/mirage/ocaml-dns";
|
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|