1{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, xmlm, topkg }:
2
3let
4 pname = "uucd";
5 webpage = "http://erratique.ch/software/${pname}";
6in
7stdenv.mkDerivation rec {
8 name = "ocaml-${pname}-${version}";
9 version = "10.0.0";
10
11 src = fetchurl {
12 url = "${webpage}/releases/${pname}-${version}.tbz";
13 sha256 = "0cdyg6vaic4n58w80qriwvaq1c40ng3fh74ilxrwajbq163k055q";
14 };
15
16 buildInputs = [ ocaml findlib ocamlbuild topkg ];
17
18 unpackCmd = "tar xjf $src";
19
20 inherit (topkg) buildPhase installPhase;
21
22 propagatedBuildInputs = [ xmlm ];
23
24 meta = with stdenv.lib; {
25 description = "An OCaml module to decode the data of the Unicode character database from its XML representation";
26 homepage = "${webpage}";
27 platforms = ocaml.meta.platforms or [];
28 maintainers = [ maintainers.vbgl ];
29 license = licenses.bsd3;
30 };
31}