11 cmdlinerSupport ? lib.versionAtLeast cmdliner.version "1.1",
12 version ? if lib.versionAtLeast ocaml.version "4.14" then "16.0.0" else "15.0.0",
17 webpage = "https://erratique.ch/software/${pname}";
20 "15.0.0" = "sha256-B/prPAwfqS8ZPS3fyDDIzXWRbKofwOCyCfwvh9veuug=";
21 "16.0.0" = "sha256-iQNkT1av6ONJXn3yWbNbEVV8lKGYOKh/nPU0tkUdX64=";
26 if lib.versionOlder ocaml.version "4.03" then
27 throw "${pname} is not available for OCaml ${ocaml.version}"
31 name = "ocaml${ocaml.version}-${pname}-${version}";
35 url = "${webpage}/releases/${pname}-${version}.tbz";
48 ] ++ lib.optional cmdlinerSupport cmdliner;
52 prePatch = lib.optionalString stdenv.hostPlatform.isAarch64 "ulimit -s 16384";
58 --with-cmdliner ${lib.boolToString cmdlinerSupport}
62 inherit (topkg) installPhase;
65 description = "OCaml module for normalizing Unicode text";
67 license = licenses.bsd3;
68 maintainers = [ maintainers.vbgl ];
69 mainProgram = "unftrip";
70 inherit (ocaml.meta) platforms;