Open amuricys opened 1 month ago
Yes, this is a known limitation. From the readme:
The latter two commands work by calling nix shell or nix develop twice, the first time with overridden --run exit and monitoring the output, the second time passing output through to the user. This will incur a performance cost by doubling eval time.
sorry for missing that! Feel free to close the issue :)
Well, I agree that this is super annoying and I would love a better solution. So lets keep this open in the hope that someone suggests a fix!
parts of it run twice immediately upon entering the shell, like the
cp
command below. I know this because the second attempt at copying from the flake below fails with "permission denied" (because the file is not writable, since it comes from the nix store). i know this is ugly (copying files from the store to the home directory, it's just for illustration purposes).the output is
nix develop
works as expected.