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.
(cherry picked from commit 398e74f70b)
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>