1{
2 lib,
3 stdenv,
4 fetchurl,
5 ocaml,
6 findlib,
7 ocamlbuild,
8 xmlm,
9 topkg,
10}:
11
12let
13 pname = "uucd";
14 webpage = "https://erratique.ch/software/${pname}";
15in
16stdenv.mkDerivation rec {
17 name = "ocaml-${pname}-${version}";
18 version = "16.0.0";
19
20 src = fetchurl {
21 url = "${webpage}/releases/${pname}-${version}.tbz";
22 hash = "sha256-VVGPG6ZjchUqo8xMCJRahqCCF5WheDBpK1stuts+orM=";
23 };
24
25 nativeBuildInputs = [
26 ocaml
27 findlib
28 ocamlbuild
29 topkg
30 ];
31 buildInputs = [ topkg ];
32
33 strictDeps = true;
34
35 inherit (topkg) buildPhase installPhase;
36
37 propagatedBuildInputs = [ xmlm ];
38
39 meta = with lib; {
40 description = "OCaml module to decode the data of the Unicode character database from its XML representation";
41 homepage = webpage;
42 inherit (ocaml.meta) platforms;
43 maintainers = [ maintainers.vbgl ];
44 license = licenses.bsd3;
45 };
46}