1 # A shell to get tooling for Nixpkgs development
3 # Note: We intentionally don't use Flakes here,
4 # because every time you change any file and do another `nix develop`,
5 # it would create another copy of the entire ~500MB tree in the store.
6 # See https://github.com/NixOS/nix/pull/6530 for the future
8 # Note: We use a pinned Nixpkgs so that the tools are readily available even
9 # when making changes that would otherwise require a new build of those tools.
10 # If you'd like to test out changes to the tools themselves, you can pass
12 # nix-shell --arg nixpkgs ./.
15 system ? builtins.currentSystem,
19 inherit (import ./ci { inherit nixpkgs system; }) pkgs;
21 # For `nix-shell -A hello`
22 curPkgs = builtins.removeAttrs (import ./. { inherit system; }) [
23 # Although this is what anyone may expect from a `_type = "pkgs"`,
24 # this file is intended to produce a shell in the first place,
25 # and a `_type` tag could confuse some code.
31 packages = with pkgs; [
32 # The default formatter for Nix code
33 # See https://github.com/NixOS/nixfmt
35 # Helper to review Nixpkgs PRs