2021-10-28 06:52:43 +00:00
|
|
|
{ angstrom
|
|
|
|
, buildDunePackage
|
2022-04-27 09:35:20 +00:00
|
|
|
, fetchurl
|
2021-10-28 06:52:43 +00:00
|
|
|
, findlib
|
|
|
|
, lib
|
|
|
|
, ocaml
|
|
|
|
, re
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "uuuu";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "0.3.0";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/uuuu/releases/download/v${version}/uuuu-${version}.tbz";
|
|
|
|
sha256 = "sha256:19n39yc7spgzpk9i70r0nhkwsb0bfbvbgpf8d863p0a3wgryhzkb";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/dune --replace 'ocaml} ' \
|
|
|
|
'ocaml} -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib '
|
|
|
|
'';
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
nativeBuildInputs = [ findlib ];
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
buildInputs = [ angstrom ];
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
strictDeps = !doCheck;
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
checkInputs = [ re ];
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A library to normalize an ISO-8859 input to Unicode code-point";
|
|
|
|
homepage = "https://github.com/mirage/uuuu";
|
2022-05-18 14:49:53 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ ];
|
|
|
|
mainProgram = "uuuu.generate";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
}
|