diff --git a/pkgs/development/ocaml-modules/xmlm/default.nix b/pkgs/development/ocaml-modules/xmlm/default.nix index 17f3a2a59567..ed8634e7ff58 100644 --- a/pkgs/development/ocaml-modules/xmlm/default.nix +++ b/pkgs/development/ocaml-modules/xmlm/default.nix @@ -7,16 +7,13 @@ ocamlbuild, topkg, }: -let +stdenv.mkDerivation (finalAttrs: { + name = "ocaml${ocaml.version}-${finalAttrs.pname}-${finalAttrs.version}"; pname = "xmlm"; - webpage = "https://erratique.ch/software/${pname}"; -in -stdenv.mkDerivation rec { - name = "ocaml${ocaml.version}-${pname}-${version}"; version = "1.4.0"; src = fetchurl { - url = "${webpage}/releases/${pname}-${version}.tbz"; + url = "https://erratique.ch/software/xmlm/releases/xmlm-${finalAttrs.version}.tbz"; sha256 = "sha256-CRJSJY490WMgw85N2yG81X79nIwuv7eZ7mpUPtSS2fo="; }; @@ -34,11 +31,10 @@ stdenv.mkDerivation rec { meta = { description = "OCaml streaming codec to decode and encode the XML data format"; - homepage = webpage; + homepage = "https://erratique.ch/software/xmlm"; license = lib.licenses.isc; maintainers = [ lib.maintainers.vbgl ]; mainProgram = "xmltrip"; inherit (ocaml.meta) platforms; - broken = lib.versionOlder ocaml.version "4.05"; }; -} +})