summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/domain-name/default.nix
blob: 57a1d67ac2ebbfc790abc71c6eac12abbdb82375 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, buildDunePackage, ocaml, fetchurl
, alcotest
}:

buildDunePackage rec {
  pname = "domain-name";
  version = "0.4.0";

  src = fetchurl {
    url = "https://github.com/hannesm/domain-name/releases/download/v${version}/domain-name-${version}.tbz";
    sha256 = "sha256-pcBuIoRYlSAZc+gS/jAZJ00duBwKeHPabIAHxK0hCMU=";
  };

  minimalOCamlVersion = "4.04";

  checkInputs = [ alcotest ];

  doCheck = lib.versionAtLeast ocaml.version "4.05";

  meta = {
    homepage = "https://github.com/hannesm/domain-name";
    description = "RFC 1035 Internet domain names";
    license = lib.licenses.isc;
    maintainers = [ lib.maintainers.vbgl ];
  };
}