2021-03-06 21:10:57 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildDunePackage
|
|
|
|
, bigarray-compat
|
|
|
|
, containers
|
|
|
|
, cppo
|
|
|
|
, ctypes
|
|
|
|
, integers
|
|
|
|
, num
|
|
|
|
, ppxlib
|
|
|
|
, re
|
2022-02-22 09:59:04 +00:00
|
|
|
, findlib
|
2021-03-06 21:10:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "ppx_cstubs";
|
2022-03-24 17:33:21 +00:00
|
|
|
version = "0.7.0";
|
2021-03-06 21:10:57 +00:00
|
|
|
|
2021-11-03 14:47:03 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
|
2021-03-06 21:10:57 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fdopen";
|
|
|
|
repo = "ppx_cstubs";
|
|
|
|
rev = version;
|
2022-03-24 17:33:21 +00:00
|
|
|
sha256 = "sha256-qMmwRWCIfNyhCQYPKLiufnb57sTR3P+WInOqtPDywFs=";
|
2021-03-06 21:10:57 +00:00
|
|
|
};
|
|
|
|
|
2022-03-04 10:30:58 +00:00
|
|
|
nativeBuildInputs = [ cppo findlib ];
|
2022-02-22 09:59:04 +00:00
|
|
|
|
2021-03-06 21:10:57 +00:00
|
|
|
buildInputs = [
|
|
|
|
bigarray-compat
|
|
|
|
containers
|
|
|
|
integers
|
|
|
|
num
|
|
|
|
ppxlib
|
|
|
|
re
|
2022-03-04 10:30:58 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ctypes
|
2021-03-06 21:10:57 +00:00
|
|
|
];
|
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2021-03-06 21:10:57 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/fdopen/ppx_cstubs";
|
2021-08-22 14:00:00 +00:00
|
|
|
changelog = "https://github.com/fdopen/ppx_cstubs/raw/${version}/CHANGES.md";
|
2021-03-06 21:10:57 +00:00
|
|
|
description = "Preprocessor for easier stub generation with ocaml-ctypes";
|
2021-08-22 14:00:00 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2021-03-06 21:10:57 +00:00
|
|
|
maintainers = [ maintainers.osener ];
|
|
|
|
};
|
|
|
|
}
|