diff --git a/shell.nix b/shell.nix index b8a9fe7df19f..ecb444e75ec0 100644 --- a/shell.nix +++ b/shell.nix @@ -17,8 +17,17 @@ }: let inherit (import ./ci { inherit nixpkgs system; }) pkgs; + + # For `nix-shell -A hello` + curPkgs = builtins.removeAttrs (import ./. { inherit system; }) [ + # Although this is what anyone may expect from a `_type = "pkgs"`, + # this file is intended to produce a shell in the first place, + # and a `_type` tag could confuse some code. + "_type" + ]; in -pkgs.mkShellNoCC { +curPkgs +// pkgs.mkShellNoCC { packages = with pkgs; [ # The default formatter for Nix code # See https://github.com/NixOS/nixfmt