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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
785 B
Nix
Raw Normal View History

2020-04-08 06:19:59 +00:00
{ lib, buildDunePackage, fetchurl, alcotest
, cstruct, domain-name, duration, gmap, ipaddr, logs, lru, metrics, ptime, fmt
2022-09-21 14:10:35 +00:00
, base64
2020-04-08 06:19:59 +00:00
}:
buildDunePackage rec {
pname = "dns";
2022-09-21 14:10:35 +00:00
version = "6.3.0";
2020-04-08 06:19:59 +00:00
minimalOCamlVersion = "4.08";
2020-04-08 06:19:59 +00:00
src = fetchurl {
url = "https://github.com/mirage/ocaml-dns/releases/download/v${version}/dns-${version}.tbz";
2022-09-21 14:10:35 +00:00
sha256 = "sha256-3EAjenN9EIi4PsXCZDevmEPDaS4xbESbcbB7pFgwc1E=";
2020-04-08 06:19:59 +00:00
};
2022-09-21 14:10:35 +00:00
propagatedBuildInputs = [ fmt logs ptime domain-name gmap cstruct ipaddr lru duration metrics base64 ];
2020-04-08 06:19:59 +00:00
doCheck = true;
checkInputs = [ alcotest ];
2020-04-08 06:19:59 +00:00
meta = {
description = "An Domain Name System (DNS) library";
homepage = "https://github.com/mirage/ocaml-dns";
license = lib.licenses.bsd2;
maintainers = [ lib.maintainers.vbgl ];
};
}