Skip to content

Commit

Permalink
nix: support 5.3 (#1473)
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg authored Feb 23, 2025
1 parent 0271918 commit cce936c
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:nix-ocaml/nix-overlays";
merlin5_2 = {
merlin5_3 = {
url = "github:ocaml/merlin/main";
flake = false;
};
merlin5_2 = {
url = "github:ocaml/merlin/502";
flake = false;
};
merlin5_1 = {
url = "github:ocaml/merlin/501";
flake = false;
Expand Down Expand Up @@ -141,8 +145,11 @@
makeNixpkgs (ocaml: ocaml.ocamlPackages_5_1) inputs.merlin5_1;
pkgs_5_2 =
makeNixpkgs (ocaml: ocaml.ocamlPackages_5_2) inputs.merlin5_2;
pkgs_5_3 =
makeNixpkgs (ocaml: ocaml.ocamlPackages_5_3) inputs.merlin5_3;
localPackages_5_1 = makeLocalPackages pkgs_5_1;
localPackages_5_2 = makeLocalPackages pkgs_5_2;
localPackages_5_3 = makeLocalPackages pkgs_5_3;
devShell = localPackages: nixpkgs:
nixpkgs.mkShell {
buildInputs = [ nixpkgs.ocamlPackages.utop ];
Expand All @@ -151,16 +158,19 @@
(builtins.attrValues localPackages);
};
in {
packages = (localPackages_5_2 // {
default = localPackages_5_2.ocaml-lsp;
packages = (localPackages_5_3 // {
default = localPackages_5_3.ocaml-lsp;
ocaml_5_1 = localPackages_5_1;
ocaml_5_2 = localPackages_5_1;
});

devShells = {
default = devShell localPackages_5_2 pkgs_5_2;
default = devShell localPackages_5_3 pkgs_5_3;

ocaml5_1 = devShell localPackages_5_1 pkgs_5_1;

ocaml5_2 = devShell localPackages_5_2 pkgs_5_2;

release = pkgsWithoutOverlays.mkShell {
buildInputs = [ pkgsWithoutOverlays.dune-release ];
};
Expand All @@ -176,8 +186,8 @@
];
};

check = pkgs_5_2.mkShell {
inputsFrom = builtins.attrValues localPackages_5_2;
check = pkgs_5_3.mkShell {
inputsFrom = builtins.attrValues localPackages_5_3;
};
};
}));
Expand Down

0 comments on commit cce936c

Please sign in to comment.