Skip to content

Set NIX_SHELL_PACKAGES in nix shell#15297

Open
lisanna-dettwyler wants to merge 1 commit intoNixOS:masterfrom
lisanna-dettwyler:nix-shell-packages
Open

Set NIX_SHELL_PACKAGES in nix shell#15297
lisanna-dettwyler wants to merge 1 commit intoNixOS:masterfrom
lisanna-dettwyler:nix-shell-packages

Conversation

@lisanna-dettwyler
Copy link
Contributor

Opting not to also set IN_NIX_SHELL to provide a way to differentiate between the different kinds of nix shells.

Nested nix shells will pick up the prior shell's package names as well.

Resolves #6677

Motivation

This is a popular requested feature.

Context

#6677


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@github-actions github-actions bot added the new-cli Relating to the "nix" command label Feb 19, 2026
Opting not to also set IN_NIX_SHELL to provide a way to differentiate
between the different kinds of nix shells.

Nested nix shells will pick up the prior shell's package names as well.

Resolves NixOS#6677

Signed-off-by: Lisanna Dettwyler <lisanna.dettwyler@gmail.com>
@github-actions github-actions bot added the with-tests Issues related to testing. PRs with tests have some priority label Feb 19, 2026
@lisanna-dettwyler lisanna-dettwyler marked this pull request as ready for review February 19, 2026 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-cli Relating to the "nix" command with-tests Issues related to testing. PRs with tests have some priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Straightforward way to determine if inside a nix shell

1 participant

Comments