about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/ppx_cstubs/default.nix
blob: f4794eea76ed7f3e41a1ba72429651ce0dd72b77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{ 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 ];
  };
}