mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
shell.nix
: Support nix-shell -A
(#353240)
This commit is contained in:
commit
603cc87dd6
11
shell.nix
11
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
|
||||
|
Loading…
Reference in New Issue
Block a user