ocamlPackages.dns: init at 4.4.1

This commit is contained in:
Vincent Laporte 2020-04-08 08:19:59 +02:00 committed by Vincent Laporte
parent b70b03272a
commit e021f27d75
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,28 @@
{ lib, buildDunePackage, fetchurl, alcotest
, cstruct, domain-name, duration, gmap, ipaddr, logs, lru, metrics, ptime, rresult
}:
buildDunePackage rec {
pname = "dns";
version = "4.4.1";
minimumOCamlVersion = "4.07";
src = fetchurl {
url = "https://github.com/mirage/ocaml-dns/releases/download/v${version}/dns-v${version}.tbz";
sha256 = "18c09jf0kicv2xz40n367y774rg8qs07rr1vdk8bx8f7hnaa9cn8";
};
propagatedBuildInputs = [ cstruct domain-name duration gmap ipaddr logs lru metrics ptime rresult ];
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 ];
};
}

View File

@ -214,6 +214,8 @@ let
dispatch = callPackage ../development/ocaml-modules/dispatch { };
dns = callPackage ../development/ocaml-modules/dns { };
dolmen = callPackage ../development/ocaml-modules/dolmen { };
dolog = callPackage ../development/ocaml-modules/dolog { };