8

When I run nix-shell

nix-shell ~/dev/nixpkgs -A pythonPackages.some-package

and then edit phases of pythonPackages.some-package, how to reload nix-shell environment with new changes?

Quit nix-shell and rerun is one option, but are there alternatives?

0

2 Answers 2

7

No other simple options, sorry. I can only think of rewriting nix-shell to accomplish what you want. Probably it's not even that hard. Reparse the expression, cleanup the env and refill the env.

2

New project lorri is built exactly to support this feature. It requires shell.nix file to be present and depends on direnv.

https://github.com/target/lorri

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .