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.
As explained in the comments, the dev shell should use the pinned version of Rust from the flake, not rustup.
adds files
flake.nixandpackage.nixand updates README.md with explanation on how to run with nix and how to install on NixOS.