1{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, 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 opam topkg ];
17
18 createFindlibDestdir = true;
19
20 unpackCmd = "tar xjf $src";
21
22 inherit (topkg) buildPhase installPhase;
23
24 propagatedBuildInputs = [ xmlm ];
25
26 meta = with stdenv.lib; {
27 description = "An OCaml module to decode the data of the Unicode character database from its XML representation";
28 homepage = "${webpage}";
29 platforms = ocaml.meta.platforms or [];
30 maintainers = [ maintainers.vbgl ];
31 license = licenses.bsd3;
32 };
33}