Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

60 lines
1.1 KiB
Nix

{
lib,
ocaml,
fetchFromGitHub,
buildDunePackage,
bigarray-compat,
containers,
cppo,
ctypes,
integers,
num,
ppxlib,
re,
findlib,
}:
lib.throwIf (lib.versionAtLeast ocaml.version "5.2")
"ppx_cstubs is not available for OCaml ${ocaml.version}"
buildDunePackage
rec {
pname = "ppx_cstubs";
version = "0.7.0";
minimalOCamlVersion = "4.08";
src = fetchFromGitHub {
owner = "fdopen";
repo = "ppx_cstubs";
rev = version;
hash = "sha256-qMmwRWCIfNyhCQYPKLiufnb57sTR3P+WInOqtPDywFs=";
};
patches = [ ./ppxlib.patch ];
nativeBuildInputs = [ cppo ];
buildInputs = [
bigarray-compat
containers
findlib
integers
num
ppxlib
re
];
propagatedBuildInputs = [
ctypes
];
meta = with lib; {
homepage = "https://github.com/fdopen/ppx_cstubs";
changelog = "https://github.com/fdopen/ppx_cstubs/raw/${version}/CHANGES.md";
description = "Preprocessor for easier stub generation with ocaml-ctypes";
license = licenses.lgpl21Plus;
maintainers = [ maintainers.osener ];
};
}