depot/third_party/nixpkgs/pkgs/development/ocaml-modules/domain-name/default.nix
Default email b55a4ee46f Project import generated by Copybara.
GitOrigin-RevId: e9158eca70ae59e73fae23be5d13d3fa0cfc78b4
2020-12-09 13:39:15 +01:00

31 lines
688 B
Nix

{ lib, buildDunePackage, fetchurl
, alcotest
, astring, fmt
}:
buildDunePackage rec {
pname = "domain-name";
version = "0.3.0";
useDune2 = true;
src = fetchurl {
url = "https://github.com/hannesm/domain-name/releases/download/v${version}/domain-name-v${version}.tbz";
sha256 = "12kc9p2a2fi1ipc2hyhbzivxpph3npglxwdgvhd6v20rqqdyvnad";
};
minimumOCamlVersion = "4.03";
checkInputs = [ alcotest ];
propagatedBuildInputs = [ astring fmt ];
doCheck = true;
meta = {
homepage = "https://github.com/hannesm/domain-name";
description = "RFC 1035 Internet domain names";
license = lib.licenses.isc;
maintainers = [ lib.maintainers.vbgl ];
};
}