Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ angstrom
2, buildDunePackage
3, fetchurl
4, findlib
5, lib
6, ocaml
7, re
8}:
9
10buildDunePackage rec {
11 pname = "uuuu";
12 version = "0.3.0";
13
14 src = fetchurl {
15 url = "https://github.com/mirage/uuuu/releases/download/v${version}/uuuu-${version}.tbz";
16 sha256 = "sha256:19n39yc7spgzpk9i70r0nhkwsb0bfbvbgpf8d863p0a3wgryhzkb";
17 };
18
19 postPatch = ''
20 substituteInPlace src/dune --replace 'ocaml} ' \
21 'ocaml} -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib '
22 '';
23
24 nativeBuildInputs = [ findlib ];
25
26 buildInputs = [ angstrom ];
27
28 checkInputs = [ re ];
29 doCheck = true;
30
31 duneVersion = "3";
32
33 meta = {
34 description = "A library to normalize an ISO-8859 input to Unicode code-point";
35 homepage = "https://github.com/mirage/uuuu";
36 license = lib.licenses.mit;
37 maintainers = [ ];
38 mainProgram = "uuuu.generate";
39 };
40}