clhodapp/nix-runner

Pure as default?

manveru opened this issue · 1 comments

Is there any reason that impure is the default right now? I'd think that the reverse should be the case, since you probably want purity if you use this project in the first place.

This would be my preference too but it seems kind of complex to do while the implementation is a simple sed processor. Right now, I essentially turn #!pure into an --unset PATH flag for nix shell in the runner. It's a lot harder to have magic comments remove flags from nix shell than to add them. I do really want to keep the option of preserving PATH because just blindly clearing it is over-limiting in my experience.