I don’t fully understand it, but vaguely:
-
nix develop
command hard-codes its entry point asnixpkgs#bashInteractive
. See nix/src/nix/develop.cc at 7caac53ae47100e10d836fbd194ed45e83c467fe · NixOS/nix · GitHub -
Therefore, each time you run
nix develop
, it re-evaluatesnixpkgs#bashInteractive
I may have run into a similar issue: mkShell overrides diffutils overrides?
Perhaps @dramforever or @emily can chime in to comment on what I said?