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 system ? builtins.currentSystem,
11 pinnedNixpkgs = builtins.fromJSON (builtins.readFile ci/pinned-nixpkgs.json);
13 nixpkgs = fetchTarball {
14 url = "https://github.com/NixOS/nixpkgs/archive/${pinnedNixpkgs.rev}.tar.gz";
15 sha256 = pinnedNixpkgs.sha256;
18 pkgs = import nixpkgs {
26 # The default formatter for Nix code
27 # https://github.com/NixOS/nixfmt