Commit Graph

9 Commits

Author SHA1 Message Date
Silvan Mosberger
398e74f70b shell: Introduce treefmt
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.
2025-04-01 20:09:44 +02:00
Fernando Rodrigues
2e76f1b474 shell.nix: include gh in the default shell
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>
2025-03-25 18:15:50 +05:30
Robert Hensing
5407a105c8 shell.nix: Support nix-shell -A
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.
2024-11-02 23:51:41 +01:00
Silvan Mosberger
1700d00588 ci: Add default.nix with exposed pkgs
Allows reusing it in more places
2024-10-08 22:13:59 +02:00
Silvan Mosberger
a3060fd54b
shell.nix: Enable e.g. --arg nixpkgs ./. (#330823) 2024-08-29 22:42:20 +02:00
Robert Hensing
b07c441987 shell.nix: Enable e.g. --arg nixpkgs ./.
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.
2024-07-29 10:33:55 +02:00
Sefa Eyeoglu
f696c96028
root: add nixpkgs-review to shell.nix
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>
2024-07-13 16:04:07 +02:00
Sefa Eyeoglu
b80884dcae
root: format shell.nix
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-07-13 16:03:49 +02:00
Silvan Mosberger
a70ab58960 root: shell.nix for nixfmt
This uses the reusable pinned Nixpkgs from the parent commit to create a
shell.nix file for an environment with a pinned nixfmt version.
2024-06-26 16:16:44 +02:00