2023-02-09 11:40:11 +00:00
|
|
|
{ lib
|
|
|
|
, buildDunePackage
|
|
|
|
, fetchurl
|
|
|
|
, alcotest
|
|
|
|
, cstruct
|
|
|
|
, domain-name
|
|
|
|
, duration
|
|
|
|
, gmap
|
|
|
|
, ipaddr
|
|
|
|
, logs
|
|
|
|
, lru
|
|
|
|
, metrics
|
|
|
|
, ptime
|
|
|
|
, fmt
|
2022-09-22 12:36:57 +00:00
|
|
|
, base64
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "dns";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "6.4.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2023-01-20 10:41:00 +00:00
|
|
|
duneVersion = "3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-07-14 12:49:19 +00:00
|
|
|
url = "https://github.com/mirage/ocaml-dns/releases/download/v${version}/dns-${version}.tbz";
|
2023-01-20 10:41:00 +00:00
|
|
|
hash = "sha256-omG0fKZAHGc+4ERC8cyK47jeEkiBZkB+1fz46j6SDno=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
propagatedBuildInputs = [ fmt logs ptime domain-name gmap cstruct ipaddr lru duration metrics base64 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ alcotest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An Domain Name System (DNS) library";
|
|
|
|
homepage = "https://github.com/mirage/ocaml-dns";
|
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|