Files
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

48 lines
898 B
Nix

{
lib,
stdenv,
fetchurl,
ocaml,
findlib,
ocamlbuild,
xmlm,
topkg,
}:
let
pname = "uucd";
webpage = "https://erratique.ch/software/${pname}";
version = "17.0.0";
in
stdenv.mkDerivation {
pname = "ocaml${ocaml.version}-${pname}";
inherit version;
src = fetchurl {
url = "${webpage}/releases/${pname}-${version}.tbz";
hash = "sha256-ifjEBUN+Lqw4W9FeoGX4XBjnxcJL15ukd+aSSDS8KC0=";
};
nativeBuildInputs = [
ocaml
findlib
ocamlbuild
topkg
];
buildInputs = [ topkg ];
strictDeps = true;
inherit (topkg) buildPhase installPhase;
propagatedBuildInputs = [ xmlm ];
meta = {
description = "OCaml module to decode the data of the Unicode character database from its XML representation";
homepage = webpage;
inherit (ocaml.meta) platforms;
maintainers = [ lib.maintainers.vbgl ];
license = lib.licenses.bsd3;
};
}