I've recently switched to Nixos, still getting the hang of things! I installed Roc via the flake, but it doesn't seem to include the roc_lang_server executable anywhere? Open to recommendations here! I know the LSP is still pretty crude, but we be nice to learn more about how to have it setup correctly on NixOS :)
A message was moved here from #beginners > ✔ How to install roc_lang_server? by Andrew Bucknall.
Not sure if you're still looking for an answer to this question because the thread has been marked as resolved, but I don't see any other replies :shrug:
If you're using flakes, you can use the Roc repo as an input, so in my flake.nix
, I have this:
roc = {
url = "github:roc-lang/roc";
inputs.nixpkgs.follows = "nixpkgs";
};
And then I add the Roc CLI and language server as packages in the outputs section of my flake.nix
:
packages = [
roc.packages.aarch64-darwin.cli
roc.packages.aarch64-darwin.lang-server
]
You'd need to swap out aarch64-darwin
for your machine's system
, I believe there's a way to do that with the interpolation syntax ${system}
, but I don't know enough about Nix to help with that :(
Last updated: Jul 06 2025 at 12:14 UTC