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