17 lib.throwIf (lib.versionAtLeast ocaml.version "5.2")
18 "ppx_cstubs is not available for OCaml ${ocaml.version}"
25 minimalOCamlVersion = "4.08";
27 src = fetchFromGitHub {
31 hash = "sha256-qMmwRWCIfNyhCQYPKLiufnb57sTR3P+WInOqtPDywFs=";
34 patches = [ ./ppxlib.patch ];
36 nativeBuildInputs = [ cppo ];
48 propagatedBuildInputs = [
53 homepage = "https://github.com/fdopen/ppx_cstubs";
54 changelog = "https://github.com/fdopen/ppx_cstubs/raw/${version}/CHANGES.md";
55 description = "Preprocessor for easier stub generation with ocaml-ctypes";
56 license = licenses.lgpl21Plus;
57 maintainers = [ maintainers.osener ];