2021-03-12 07:09:13 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildDunePackage
|
|
|
|
, bigarray-compat
|
|
|
|
, containers
|
|
|
|
, cppo
|
|
|
|
, ctypes
|
|
|
|
, integers
|
|
|
|
, num
|
|
|
|
, ppxlib
|
|
|
|
, re
|
2022-03-05 16:20:37 +00:00
|
|
|
, findlib
|
2021-03-12 07:09:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "ppx_cstubs";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "0.7.0";
|
2021-03-12 07:09:13 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
duneVersion = "3";
|
2021-03-12 07:09:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fdopen";
|
|
|
|
repo = "ppx_cstubs";
|
|
|
|
rev = version;
|
2023-03-24 00:07:29 +00:00
|
|
|
hash = "sha256-qMmwRWCIfNyhCQYPKLiufnb57sTR3P+WInOqtPDywFs=";
|
2021-03-12 07:09:13 +00:00
|
|
|
};
|
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
nativeBuildInputs = [ cppo ];
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2021-03-12 07:09:13 +00:00
|
|
|
buildInputs = [
|
|
|
|
bigarray-compat
|
|
|
|
containers
|
2023-03-24 00:07:29 +00:00
|
|
|
findlib
|
2021-03-12 07:09:13 +00:00
|
|
|
integers
|
|
|
|
num
|
|
|
|
ppxlib
|
|
|
|
re
|
2022-03-30 09:31:56 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ctypes
|
2021-03-12 07:09:13 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/fdopen/ppx_cstubs";
|
2021-08-27 14:25:00 +00:00
|
|
|
changelog = "https://github.com/fdopen/ppx_cstubs/raw/${version}/CHANGES.md";
|
2021-03-12 07:09:13 +00:00
|
|
|
description = "Preprocessor for easier stub generation with ocaml-ctypes";
|
2021-08-27 14:25:00 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2021-03-12 07:09:13 +00:00
|
|
|
maintainers = [ maintainers.osener ];
|
|
|
|
};
|
|
|
|
}
|