nixpkgs-suyu/pkgs/development/ocaml-modules/dns/default.nix

30 lines
841 B
Nix
Raw Normal View History

2020-04-08 08:19:59 +02:00
{ lib, buildDunePackage, fetchurl, alcotest
, cstruct, domain-name, duration, gmap, ipaddr, logs, lru, metrics, ptime, rresult, astring, fmt
2020-04-08 08:19:59 +02:00
}:
buildDunePackage rec {
pname = "dns";
2021-01-12 12:12:45 +01:00
version = "4.6.3";
2020-04-08 08:19:59 +02:00
2020-11-12 08:19:44 +01:00
useDune2 = true;
2020-04-08 08:19:59 +02:00
minimumOCamlVersion = "4.07";
src = fetchurl {
url = "https://github.com/mirage/ocaml-dns/releases/download/v${version}/dns-v${version}.tbz";
2021-01-12 12:12:45 +01:00
sha256 = "0g7xw43jm5hv0w9lsnhhi0w3243mxl615cdsvz29yh39fcqvqsdy";
2020-04-08 08:19:59 +02:00
};
propagatedBuildInputs = [ rresult astring fmt logs ptime domain-name gmap cstruct ipaddr lru duration metrics ];
2020-04-08 08:19:59 +02: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 ];
};
}