Closed expipiplus1 closed 4 years ago
Well, I suppose bash fails with this message technically
In this particular case, the error is caused by a setupHook that tries to read an impure variable.
It reproducible by nix-shell --pure -p vulkan-validation-layers
.
This particular case could be handled by passing --keep
explicitly (added in 0e73944dc31132d2aa9a769f4cc677eea6984bec):
cached-nix-shell --keep XDG_DATA_DIRS -p vulkan-validation-layers
Ah, I didn't know about keep!
Thanks again for the useful tool!
Ah, I didn't know about keep!
I added it just now. 😅
Thanks! Using it already :)
On Sat, Apr 18, 2020 at 7:05 PM xzfc notifications@github.com wrote:
Ah, I didn't know about keep!
I added it just now. 😅
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/xzfc/cached-nix-shell/issues/15#issuecomment-615842323, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGRJXEDQOYSRHTPJHCNJN3RNGCOHANCNFSM4MLIQ54Q .
When entering a shell with a package which sets an env variable in a shell hook cached nix shell fails with the error 'unbound variable'
To reproduce: