nixpkgs/pkgs/development/ocaml-modules/uuuu/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
848 B
Nix
Raw Normal View History

2021-10-26 00:04:02 +00:00
{ angstrom
, buildDunePackage
2022-04-26 15:30:45 +00:00
, fetchurl
2021-10-26 00:04:02 +00:00
, findlib
, lib
, ocaml
, re
}:
buildDunePackage rec {
pname = "uuuu";
2022-04-26 15:30:45 +00:00
version = "0.3.0";
2021-10-26 00:04:02 +00:00
2022-04-26 15:30:45 +00:00
src = fetchurl {
url = "https://github.com/mirage/uuuu/releases/download/v${version}/uuuu-${version}.tbz";
sha256 = "sha256:19n39yc7spgzpk9i70r0nhkwsb0bfbvbgpf8d863p0a3wgryhzkb";
2021-10-26 00:04:02 +00:00
};
postPatch = ''
substituteInPlace src/dune --replace 'ocaml} ' \
'ocaml} -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib '
'';
2022-04-26 15:30:45 +00:00
nativeBuildInputs = [ findlib ];
2021-10-26 00:04:02 +00:00
buildInputs = [ angstrom ];
2023-02-06 06:50:46 +00:00
checkInputs = [ re ];
2021-10-26 00:04:02 +00:00
doCheck = true;
2023-02-06 06:50:46 +00:00
duneVersion = "3";
2021-10-26 00:04:02 +00:00
meta = {
description = "A library to normalize an ISO-8859 input to Unicode code-point";
homepage = "https://github.com/mirage/uuuu";
license = lib.licenses.mit;
maintainers = [ ];
mainProgram = "uuuu.generate";
2021-10-26 00:04:02 +00:00
};
}