Skip to content

Commit 4f0ddfd

Browse files
committed
Add explicit system dependencies, nice post message
1 parent 4bf58a1 commit 4f0ddfd

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

opam/opam

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,18 @@ depends: [
2929
"yojson"
3030
]
3131

32-
available: [ ocaml-version >= "4.02.3" ]
32+
available: [ ocaml-version >= "4.02.3" ]
33+
34+
depexts: [
35+
[["debian"] ["nodejs"]]
36+
[["homebrew" "osx"] ["nodejs"]]
37+
[["ubuntu"] ["nodejs"]]
38+
]
39+
40+
post-messages: [
41+
"Now you can write OCaml and execute on node."
42+
"Example assuming file name of c.ml:"
43+
"ocamlfind ocamlc c.ml -linkpkg -package nodejs -o T.out"
44+
"js_of_ocaml T.out"
45+
"node T.js"
46+
]

0 commit comments

Comments
 (0)