jfecher / ante

A safe, easy systems language
http://antelang.org
MIT License
1.9k stars 79 forks source link

Include a nix flake in the root of the repository #125

Closed ehllie closed 2 years ago

ehllie commented 2 years ago

Including a flake.nix with appropriate expressions inside it, would allow people that use the nix package manager to install ante directly from this repository. I've made a PR to include ante in the main nixpkgs repository already, but merging that pull request seems to be taking some time. It would be convenient to offer an alternative with the bleeding edge version of the compiler to people that prefer to use that over the version available in the official repositories.

A flake would also allow for easily reproducible developer environments, and make non-rust dependencies this project has like llvm much easier to configure properly, needing only to run nix build to have the package manager install all dependencies and build the compiler, or nix develop to enter an already configured development environment where cargo build will correctly run.

ehllie commented 2 years ago

I suppose I ought to add a section in the readme mentioning you can build the project with nix as well, now that the PR was merged