Skip to content

Commit

Permalink
add 4.14 submodule and opam constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed Jan 17, 2024
1 parent d2715c4 commit 794842d
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 15 deletions.
4 changes: 3 additions & 1 deletion dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
(synopsis "Toolchain to produce JS from Reason/OCaml")
(depends
(ocaml
(>= "5.1"))
(and
(>= "4.14")
(< "5.0")))
(cmdliner
(>= "1.1.0"))
dune-build-info
Expand Down
21 changes: 11 additions & 10 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
melange-compiler-libs = {
# this changes rarely, and it's better than having to rely on nix's poor
# support for submodules
url = "github:melange-re/melange-compiler-libs";
url = "github:melange-re/melange-compiler-libs/4.14";
inputs.flake-utils.follows = "flake-utils";
inputs.nixpkgs.follows = "nixpkgs";
};
Expand All @@ -26,7 +26,7 @@
} // (flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages."${system}".extend (self: super: {
ocamlPackages = super.ocaml-ng.ocamlPackages_5_1;
ocamlPackages = super.ocaml-ng.ocamlPackages_4_14;
});

packages =
Expand Down
2 changes: 1 addition & 1 deletion melange.opam
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ homepage: "https://github.com/melange-re/melange"
bug-reports: "https://github.com/melange-re/melange/issues"
depends: [
"dune" {>= "3.8"}
"ocaml" {>= "5.1"}
"ocaml" {>= "4.14" & < "5.0"}
"cmdliner" {>= "1.1.0"}
"dune-build-info"
"cppo" {build}
Expand Down
2 changes: 1 addition & 1 deletion vendor/melange-compiler-libs

0 comments on commit 794842d

Please sign in to comment.