a13cdfe520
To keep this for the future we also strictDeps where possible, including for janePackages, topkg, oasis and ocamlbuild. This makes some closures significantly smaller and makes cross compilation easier
52 lines
923 B
Nix
52 lines
923 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildDunePackage
|
|
, bigarray-compat
|
|
, containers
|
|
, cppo
|
|
, ctypes
|
|
, integers
|
|
, num
|
|
, ppxlib
|
|
, re
|
|
, findlib
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "ppx_cstubs";
|
|
version = "0.6.1.2";
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
useDune2 = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fdopen";
|
|
repo = "ppx_cstubs";
|
|
rev = version;
|
|
sha256 = "15cjb9ygnvp2kv85rrb7ncz7yalifyl7wd2hp2cl8r1qrpgi1d0w";
|
|
};
|
|
|
|
nativeBuildInputs = [ cppo ];
|
|
|
|
buildInputs = [
|
|
bigarray-compat
|
|
containers
|
|
ctypes
|
|
integers
|
|
num
|
|
ppxlib
|
|
re
|
|
findlib
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
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 ];
|
|
};
|
|
}
|