python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / ocaml-modules / uuuu / default.nix
blob59dd7d5689671393e415a486301c7e46b6319fcd
1 { angstrom
2 , buildDunePackage
3 , fetchurl
4 , findlib
5 , lib
6 , ocaml
7 , re
8 }:
10 buildDunePackage rec {
11   pname = "uuuu";
12   version = "0.3.0";
14   src = fetchurl {
15     url = "https://github.com/mirage/uuuu/releases/download/v${version}/uuuu-${version}.tbz";
16     sha256 = "sha256:19n39yc7spgzpk9i70r0nhkwsb0bfbvbgpf8d863p0a3wgryhzkb";
17   };
19   postPatch = ''
20     substituteInPlace src/dune --replace 'ocaml} ' \
21       'ocaml} -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib '
22   '';
24   nativeBuildInputs = [ findlib ];
26   buildInputs = [ angstrom ];
28   strictDeps = !doCheck;
30   checkInputs = [ re ];
31   doCheck = true;
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   };