/
opam
37 lines (33 loc) · 1.16 KB
/
opam
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
opam-version: "2.0"
authors: ["rajdakin"]
maintainer: ["engineering@wasmer.io"]
license: "MIT"
homepage: "https://github.com/wasmerio/wasmer-ocaml"
bug-reports: "https://github.com/wasmerio/wasmer-ocaml/issues"
dev-repo: "git+https://github.com/wasmerio/wasmer-ocaml.git"
tags: ["org:wasmer"]
url {
src: "https://github.com/wasmerio/wasmer-ocaml/archive/refs/tags/v1.2.1+dunefix.tar.gz"
checksum: [
"md5=be37208390097ed6b7c7d9ede3c1a2a7"
"sha512=2422c3b32ae053a9f39336b1c9829ec9a508dd7d303e9a68853287ab7dea90b7cbc57f54a04b20a9fb6217527e1c89e8f806349407db5f8679d90fdf7dd3038e"
]
}
synopsis: "OCaml bindings for Wasmer"
description: "The official Wasmer bindings for OCaml"
depends: [
"ocaml" {>= "4.14.1"}
"dune" {>= "2.0"}
"ctypes"
"ctypes-foreign"
"libwasmer"
]
build: [
["mv" "lib-dune" "lib/dune"]
["sed" "-i" ".orig" "s` \"-cclib\" \"-Wl,--no-as-needed\"``" "lib/dune"] {os = "macos"}
["sed" "-i" ".orig" "s` \"-cclib\" \"-Wl,--as-needed\"``" "lib/dune"] {os = "macos"}
["dune" "subst"] {dev}
["dune" "build" "-p" name "-j" jobs]
["dune" "runtest" "-p" name "-j" jobs] {with-test}
]
extra-files: ["lib-dune" "md5=bd12116b297193258c07c76240c01873"]