Skip to content

Commit

Permalink
use pin-depends (#962)
Browse files Browse the repository at this point in the history
* chore(nix): use OCaml 5.1.1-rc1

* chore(opam-ci): use ocaml 5.1.1~rc1

* try to fix opam package name

* chore: fix Makefile to use `ocaml-base-compiler.5.1.1~rc1`

* use pin-depends

* use template

---------

Co-authored-by: Antonio Nuno Monteiro <[email protected]>
  • Loading branch information
jchavarri and anmonteiro authored Dec 5, 2023
1 parent 62aa27f commit f2075ec
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ opam-create-switch: ## Create opam switch

.PHONY: opam-install-test
opam-install-test: ## Install test dependencies
opam pin add js_of_ocaml-compiler --dev-repo -y
opam pin add js_of_ocaml --dev-repo -y
opam pin add merlin-lib git+https://github.com/voodoos/merlin#5.1.1-upgrade
opam pin add merlin git+https://github.com/voodoos/merlin#5.1.1-upgrade
opam pin add melange.dev . --with-test -y
opam pin add melange-playground.dev . --with-test -y

Expand Down
6 changes: 6 additions & 0 deletions melange.opam
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,9 @@ build: [
]
]
dev-repo: "git+https://github.com/melange-re/melange.git"
pin-depends: [
[ "js_of_ocaml-compiler.dev" "https://github.com/ocsigen/js_of_ocaml/archive/31e5d22f96435e511c8bd6e2a6d43f7c5fb13dec.tar.gz" ]
[ "js_of_ocaml.dev" "https://github.com/ocsigen/js_of_ocaml/archive/31e5d22f96435e511c8bd6e2a6d43f7c5fb13dec.tar.gz" ]
[ "merlin-lib.dev" "https://github.com/voodoos/merlin/archive/15491d05db13ec6beaf3c84632914c29b674270d.tar.gz" ]
[ "merlin.dev" "https://github.com/voodoos/merlin/archive/15491d05db13ec6beaf3c84632914c29b674270d.tar.gz" ]
]
6 changes: 6 additions & 0 deletions melange.opam.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pin-depends: [
[ "js_of_ocaml-compiler.dev" "https://github.com/ocsigen/js_of_ocaml/archive/31e5d22f96435e511c8bd6e2a6d43f7c5fb13dec.tar.gz" ]
[ "js_of_ocaml.dev" "https://github.com/ocsigen/js_of_ocaml/archive/31e5d22f96435e511c8bd6e2a6d43f7c5fb13dec.tar.gz" ]
[ "merlin-lib.dev" "https://github.com/voodoos/merlin/archive/15491d05db13ec6beaf3c84632914c29b674270d.tar.gz" ]
[ "merlin.dev" "https://github.com/voodoos/merlin/archive/15491d05db13ec6beaf3c84632914c29b674270d.tar.gz" ]
]

0 comments on commit f2075ec

Please sign in to comment.