1{
2 lib,
3 buildDunePackage,
4 ocaml,
5 fetchurl,
6 alcotest,
7}:
8
9buildDunePackage rec {
10 pname = "domain-name";
11 version = "0.4.1";
12
13 src = fetchurl {
14 url = "https://github.com/hannesm/domain-name/releases/download/v${version}/domain-name-${version}.tbz";
15 sha256 = "sha256-Hboy81p81cyBh9IeLMIaC2Z6ZFRHoO7+V6/jyiW8RWY=";
16 };
17
18 minimalOCamlVersion = "4.04";
19 duneVersion = "3";
20
21 checkInputs = [ alcotest ];
22
23 doCheck = lib.versionAtLeast ocaml.version "4.08";
24
25 meta = {
26 homepage = "https://github.com/hannesm/domain-name";
27 description = "RFC 1035 Internet domain names";
28 license = lib.licenses.isc;
29 maintainers = [ lib.maintainers.vbgl ];
30 };
31}