nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, fetchFromGitHub
3, buildDunePackage
4, bigarray-compat
5, containers
6, cppo
7, ctypes
8, integers
9, num
10, ppxlib
11, re
12, findlib
13}:
14
15buildDunePackage rec {
16 pname = "ppx_cstubs";
17 version = "0.7.0";
18
19 minimalOCamlVersion = "4.08";
20
21 duneVersion = "3";
22
23 src = fetchFromGitHub {
24 owner = "fdopen";
25 repo = "ppx_cstubs";
26 rev = version;
27 hash = "sha256-qMmwRWCIfNyhCQYPKLiufnb57sTR3P+WInOqtPDywFs=";
28 };
29
30 nativeBuildInputs = [ cppo ];
31
32 buildInputs = [
33 bigarray-compat
34 containers
35 findlib
36 integers
37 num
38 ppxlib
39 re
40 ];
41
42 propagatedBuildInputs = [
43 ctypes
44 ];
45
46 meta = with lib; {
47 homepage = "https://github.com/fdopen/ppx_cstubs";
48 changelog = "https://github.com/fdopen/ppx_cstubs/raw/${version}/CHANGES.md";
49 description = "Preprocessor for easier stub generation with ocaml-ctypes";
50 license = licenses.lgpl21Plus;
51 maintainers = [ maintainers.osener ];
52 };
53}