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 ];
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ re ];
|
2021-10-28 06:52:43 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
duneVersion = "3";
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Library to normalize an ISO-8859 input to Unicode code-point";
|
2021-10-28 06:52:43 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|