-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add nix flake #30
base: master
Are you sure you want to change the base?
add nix flake #30
Conversation
Could you put a dev shell for the project? It will be nice for anyone want to join the project. |
@yanganto I added a devShell with the local build of serie, and also rustfmt and rustup |
If we want to build a nix package for Why do people use nix/flake for their projects? For a Rust project, we will keep the Rust version, fmt, clippy, and all the dependencies the same from the build system, and the dev shell for development, and use it in CI. The flake is introduced here, and what do we want for this project? |
It's already been added to nixpkgs. I appreciate the consideration you gave to this contribution. Feel free to close the request at your leisure. |
Having a flake serves a completely different purpose as having a package in nixpkgs. Both can be used by and end user just to run an app, but they are fundamentally different and having both is a good thing. The nix package is great to have both on Nix OS and anywhere |
@alerque The following are issues if you use First, Second, if a system already has Last, installation of
It is no a good reason for a developer to install |
flake.nix
Outdated
packages = [ | ||
inputs.self.packages.${system}.serie | ||
pkgs.rustfmt | ||
pkgs.rustup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As explained in the comments, the dev shell should use the pinned version of Rust from the flake, not rustup
.
adds files
flake.nix
andpackage.nix
and updates README.md with explanation on how to run with nix and how to install on NixOS.