ocamlPackages.ppx_cstubs : Init at 0.6.1.1

This commit is contained in:
Ozan Sener 2021-03-06 22:10:57 +01:00 committed by Vincent Laporte
parent 806b9d0343
commit 28c7e68e99
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,44 @@
{ lib
, fetchFromGitHub
, buildDunePackage
, bigarray-compat
, containers
, cppo
, ctypes
, integers
, num
, ppxlib
, re
}:
buildDunePackage rec {
pname = "ppx_cstubs";
version = "0.6.1.1";
useDune2 = true;
src = fetchFromGitHub {
owner = "fdopen";
repo = "ppx_cstubs";
rev = version;
sha256 = "0rgg78435ypi6ryhcq5ljkch4qjvra2jqjd47c2hhhcbwvi2ssxh";
};
buildInputs = [
bigarray-compat
containers
cppo
ctypes
integers
num
ppxlib
re
];
meta = with lib; {
homepage = "https://github.com/fdopen/ppx_cstubs";
description = "Preprocessor for easier stub generation with ocaml-ctypes";
license = licenses.mit;
maintainers = [ maintainers.osener ];
};
}

View File

@ -1001,6 +1001,10 @@ let
ppx_cstruct = callPackage ../development/ocaml-modules/cstruct/ppx.nix { };
ppx_cstubs = callPackage ../development/ocaml-modules/ppx_cstubs {
ppxlib = ppxlib.override { version = "0.22.0"; };
};
ppx_derivers = callPackage ../development/ocaml-modules/ppx_derivers {};
ppx_deriving = callPackage ../development/ocaml-modules/ppx_deriving {};