-
Notifications
You must be signed in to change notification settings - Fork 2
/
dune.inc
27 lines (27 loc) · 1.03 KB
/
dune.inc
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
(rule (target nanoid.%{version:nanoid}.opam) (deps (:opam nanoid.opam))
(action
(with-stdout-to %{target}
(progn (cat %{opam})
(echo
"url { src: \"git://git@gitlab.routine.co:routine/nanoid#%{version:nanoid}\" }")))))
(rule (alias default) (target nanoid-ios.opam)
(action
(with-stdout-to %{target}
(run %{dep:.logistic/dune/extdeps/extdeps.exe} rewrite-ios --input
%{dep:nanoid.opam} --cross nanoid,cryptokit --cross-both ""
--cross-exclude js_of_ocaml))))
(rule (target nanoid-ios.%{version:nanoid}.opam)
(deps (:opam nanoid-ios.opam))
(action
(with-stdout-to %{target}
(progn (cat %{opam})
(echo
"url { src: \"git://git@gitlab.routine.co:routine/nanoid#%{version:nanoid}\" }")))))
(rule (deps (universe)) (target nanoid.opam.locked)
(action (run %{bin:opam} lock nanoid)))
(rule (alias extdeps) (mode (promote (until-clean)))
(target nanoid.opam.extdeps)
(action
(with-stdout-to %{target}
(run %{dep:.logistic/dune/extdeps/extdeps.exe} rewrite --input
%{dep:nanoid.opam.locked} --local nanoid))))