feat: adding nix flake support
I want this mostly to add it for my flake devshells, where I setup rust for different versions, and normally I don't have a global rust-analyzer.
Hi, is it necessary to keep the flake definition in the repository itself? I don't use nix personally and don't have the knowledge to maintain this.
Yeah, the flake definition uses git to make the build reproducible. So it is tied to what is commited. If you don't mind I can take care any PR or issue related to it.
Ok then. Is there anything that can potentially break with unrelated changes that we could add a check to CI for so we know when we break it?
Ok then. Is there anything that can potentially break with unrelated changes that we could add a check to CI for so we know when we break it?
Currently I'm just pining version 1.72 and everything else is from the Cargo.toml definition. So it may break when the github action rust stable upgrades the version. I can add a workflow for the nix part.
Yes, adding a github actions workflow that would check if the flake still works would be ideal.
i've since started using nixos myself and now i've added a flake to the repository^^