3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/dns/default.nix

29 lines
822 B
Nix
Raw Normal View History

2020-04-08 07:19:59 +01:00
{ lib, buildDunePackage, fetchurl, alcotest
, 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";
version = "4.6.1";
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";
sha256 = "0nsx98r2i1siz0yghnh87f2sq8w79if7ih9259yay1bp39crd6gd";
2020-04-08 07:19:59 +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 ];
};
}