ocamlPackages.xmlm: set pname instead of name (#484539)

This commit is contained in:
Jo
2026-02-06 18:08:57 +00:00
committed by GitHub
@@ -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";
};
}
})