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