ocaml / merlin

Context sensitive completion for OCaml in Vim and Emacs
https://ocaml.github.io/merlin/
MIT License
1.59k stars 233 forks source link

nix: Build with OCaml 5.2 #1769

Closed Julow closed 6 months ago

Julow commented 6 months ago

This changes flake.nix to build Merlin with OCaml 5.2 in order to support 5.2-only features.

Nixpkgs needed to be updated too.

Julow commented 6 months ago

I changed nix develop to install the current merlin instead of ocaml-lsp (which pulled nixpkgs' version of merlin). I changed the definition so that adding ocaml-lsp back to the devShells would use the current merlin but the last release is not co-installable. It's possible to pin a branch of ocaml-lsp but I think this would add too much maintenance. Are there any users of nix develop ? (other than the CI, which doesn't need ocaml-lsp)