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 pinnedNixpkgs = builtins.fromJSON (builtins.readFile ci/pinned-nixpkgs.json);
18 system ? builtins.currentSystem,
20 nixpkgs ? fetchTarball {
21 url = "https://github.com/NixOS/nixpkgs/archive/${pinnedNixpkgs.rev}.tar.gz";
22 sha256 = pinnedNixpkgs.sha256;
26 pkgs = import nixpkgs {
33 packages = with pkgs; [
34 # The default formatter for Nix code
35 # See https://github.com/NixOS/nixfmt
37 # Helper to review Nixpkgs PRs