IIUC:
-
The old
nix-shellserved a dual purpose and the new Nix caters for these via two separate mechanisms:nix shellandnix develop. -
In the old Nix,
shellHookwas executed bynix-shell.
What are the interactions between shellHook and nix shell/nix develop?
In my flake, nix develop shows signs of having executed source ${pkgs.geant4}/nix-support/setup-hook but I have no idea how or why; various experiments seem to suggest that it has nothing to do with shellHook.
The effects of source ${pkgs.geant4}/nix-support/setup-hook are absent from (but needed in) nix shell: how should I go about providing them?