Files
nixpkgs/pkgs/development/ocaml-modules/xmlm/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

45 lines
897 B
Nix

{
lib,
stdenv,
fetchurl,
ocaml,
findlib,
ocamlbuild,
topkg,
}:
let
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";
sha256 = "sha256-CRJSJY490WMgw85N2yG81X79nIwuv7eZ7mpUPtSS2fo=";
};
nativeBuildInputs = [
ocaml
findlib
ocamlbuild
topkg
];
buildInputs = [ topkg ];
strictDeps = true;
inherit (topkg) buildPhase installPhase;
meta = {
description = "OCaml streaming codec to decode and encode the XML data format";
homepage = webpage;
license = lib.licenses.isc;
maintainers = [ lib.maintainers.vbgl ];
mainProgram = "xmltrip";
inherit (ocaml.meta) platforms;
broken = lib.versionOlder ocaml.version "4.05";
};
}