14 lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
15 "piqi is not available for OCaml ${ocaml.version}"
21 name = "ocaml${ocaml.version}-${pname}-${version}";
23 src = fetchFromGitHub {
27 sha256 = "sha256-qE+yybTn+kzbY0h8udhZYO+GwQPI/J/6p3LMmF12cFU=";
35 propagatedBuildInputs = [
46 ./no-ocamlpath-override.patch
49 createFindlibDestdir = true;
51 postBuild = "make -C piqilib piqilib.cma";
59 homepage = "https://piqi.org";
60 description = "Universal schema language and a collection of tools built around it";
61 license = licenses.asl20;
62 maintainers = [ maintainers.maurer ];