depot/third_party/nixpkgs/pkgs/development/ocaml-modules/dns/default.nix
Default email d7dbe45cea Project import generated by Copybara.
GitOrigin-RevId: 9480bae337095fd24f61380bce3174fdfe926a00
2020-06-18 09:06:33 +02:00

28 lines
822 B
Nix

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