From 9a9b815e30746e87db5784defce576d91ceaf989 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Tue, 27 Jan 2026 22:57:05 +0100 Subject: [PATCH] ocamlPackages.xmlm: set pname instead of name --- pkgs/development/ocaml-modules/xmlm/default.nix | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) 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"; }; -} +})