this repo has no description
1# This file is generated by dune, edit dune-project instead
2opam-version: "2.0"
3synopsis: "Libbpf bindings"
4description: "Wrapped libbpf api's for writing BPF user programs in OCaml"
5maintainer: ["Lee Koon Wen"]
6authors: ["Lee Koon Wen"]
7license: ["ISC" "BSD-3-Clause"]
8tags: ["bindings" "bpf" "libbpf"]
9homepage: "https://github.com/koonwen/ocaml-libbpf"
10doc: "https://koonwen.github.io/ocaml-libbpf"
11bug-reports: "https://github.com/koonwen/ocaml-libbpf/issues"
12depends: [
13 "ocaml" {>= "4.08"}
14 "dune" {>= "3.13"}
15 "ctypes" {>= "0.22.0"}
16 "ppx_deriving"
17 "ppx_expect"
18 "conf-libbpf"
19 "conf-bpftool"
20 "conf-clang"
21 "odoc" {with-doc}
22]
23build: [
24 ["dune" "subst"] {dev}
25 [
26 "dune"
27 "build"
28 "-p"
29 name
30 "-j"
31 jobs
32 "@install"
33 "@runtest" {with-test}
34 "@doc" {with-doc}
35 ]
36]
37dev-repo: "git+https://github.com/koonwen/ocaml-libbpf.git"
38# eBPF features by kernel version https://github.com/iovisor/bcc/blob/master/docs/kernel-versions.md
39# Fix to kernel >= 6.1 to provide bound BPF map types
40available: [ os = "linux" &
41 (( os-distribution = "debian" & os-version >= "12" ) # Linux 6.1 & Libbpf 1.1.0
42 |( os-distribution = "ubuntu" & os-version >= "23.04" ) # Linux 6.2 & Libbpf 1.1.0
43 |( os-distribution = "fedora" & os-version >= "38" )) # Linux 6.2 & Libbpf 1.1.0
44 ]