Introduces treefmt with a simple nixfmt-rfc-style configuration to
format all Nix files.
This is only practically usable with the following commit that formats
all files accordingly.
GitHub's CLI is now used by nixpkgs-review to fetch Nixpkgs evaluation
results from GitHub Actions. Including it in the default shell will
allow all contributors to easily log-in to GitHub when nixpkgs-review
tries to fetch evaluation results.
Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
It used to be that `nix-shell -A hello` would launch the build shell
for the `hello` package.
By adding `/shell.nix`, that stopped working, as all versions of
`nix-shell` resolve the unspecified file to `$PWD/shell.nix` if it
exists, and now it does.
I have to admit that this use of `//` is not pretty, but the UX/DX
hard to match.
This allows shell.nix to be run with the latest tools instead of
the pinned ones when desired, which is probably not very often,
but useful nonetheless.
nixpkgs-review is endorsed in CONTRIBUTING.md, as well as in the default
PR description template. It would be very useful to include this utility
in our shell.nix.
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>