diff --git a/pkgs/development/ocaml-modules/domain-name/default.nix b/pkgs/development/ocaml-modules/domain-name/default.nix index 2e1682076efe..279641b3d67f 100644 --- a/pkgs/development/ocaml-modules/domain-name/default.nix +++ b/pkgs/development/ocaml-modules/domain-name/default.nix @@ -1,31 +1,27 @@ { lib, buildDunePackage, - ocaml, fetchurl, alcotest, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "domain-name"; - version = "0.4.1"; + version = "0.5.0"; src = fetchurl { - url = "https://github.com/hannesm/domain-name/releases/download/v${version}/domain-name-${version}.tbz"; - sha256 = "sha256-Hboy81p81cyBh9IeLMIaC2Z6ZFRHoO7+V6/jyiW8RWY="; + url = "https://github.com/hannesm/domain-name/releases/download/v${finalAttrs.version}/domain-name-${finalAttrs.version}.tbz"; + hash = "sha256-nseuLCJ3LBULhM+j8h2b8l+uFKeW8x4g31LYb0ZJnYk="; }; - minimalOCamlVersion = "4.04"; - duneVersion = "3"; - + doCheck = true; checkInputs = [ alcotest ]; - doCheck = lib.versionAtLeast ocaml.version "4.08"; - meta = { homepage = "https://github.com/hannesm/domain-name"; + changelog = "https://github.com/hannesm/domain-name/blob/v${finalAttrs.version}/CHANGES.md"; description = "RFC 1035 Internet domain names"; license = lib.licenses.isc; maintainers = [ lib.maintainers.vbgl ]; }; -} +})