Skip to content

nix-shell for contentAddressedByDefault = true; sets seemingly incorrect $out value #5309

Open
@trofi

Description

Tried to create a shell to debug package SIGSEGV and found I can't run install phase for it:

# good:
$ NIX_BUILD_SHELL=$(which bash) nix-shell -A hello
[nix-shell:~/nm]$ echo $out
/nix/store/d916b1dpw6k0207a9ll0x48bdpas0zmz-hello-2.10

# bad:
$ NIX_BUILD_SHELL=$(which bash) nix-shell --arg config '{ contentAddressedByDefault = true; }' -A hello
[nix-shell:~/nm]$ echo $out
/1rz4g4znpzjwh1xymhjpm42vipw92pr73vdgl6xs1hycac8kf2n9

Looks unintentional.

Cc @regnat

nix-env --version output

nix-env (Nix) 2.4pre20210922_bcd73eb

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions