2020-04-08 07:19:59 +01:00
|
|
|
{ lib, buildDunePackage, fetchurl, alcotest
|
2020-06-12 19:07:39 +01:00
|
|
|
, cstruct, domain-name, duration, gmap, ipaddr, logs, lru, metrics, ptime, rresult, astring, fmt
|
2020-04-08 07:19:59 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "dns";
|
2020-08-07 15:26:02 +01:00
|
|
|
version = "4.6.2";
|
2020-04-08 07:19:59 +01:00
|
|
|
|
|
|
|
minimumOCamlVersion = "4.07";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/ocaml-dns/releases/download/v${version}/dns-v${version}.tbz";
|
2020-08-07 15:26:02 +01:00
|
|
|
sha256 = "0prypr5c589vay4alri78g0sarh06z35did26wn3s3di17d5761q";
|
2020-04-08 07:19:59 +01:00
|
|
|
};
|
|
|
|
|
2020-06-12 19:07:39 +01:00
|
|
|
propagatedBuildInputs = [ rresult astring fmt logs ptime domain-name gmap cstruct ipaddr lru duration metrics ];
|
2020-04-08 07:19:59 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkInputs = lib.optional doCheck alcotest;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An Domain Name System (DNS) library";
|
|
|
|
homepage = "https://github.com/mirage/ocaml-dns";
|
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|