You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,22 @@ of `opam` packages in the [opam repository](http://opam.ocaml.org/packages/).
42
42
Edit your `opam` file so that you depend on a particular opam package and range
43
43
of versions.
44
44
45
+
In addition you may have to tweak the buildstep to recognize the dependency, by changing `build.ml` within the `pkg` folder. and add the following for you dependency:
46
+
```ocaml
47
+
...
48
+
OS.Cmd.run @@ Cmd.(
49
+
ocamlbuild % "-use-ocamlfind"
50
+
%% (v "-I" % "src")
51
+
%% (v "-pkg" % "[PACKAGE]") (* <---- only change is this line*)
52
+
%% of_list files)
53
+
...
54
+
```
55
+
56
+
Finally For your editor to pick up the dependency and fancy autocomplete etc. make sure to add the package in your `.merlin` file:
57
+
```ocaml
58
+
PKG topkg reason [PACKAGE]
59
+
```
60
+
45
61
### Creating Libraries
46
62
47
63
See the [OPAM instructions](https://opam.ocaml.org/doc/Packaging.html).
0 commit comments