writeShellScriptBin — Why Every Nix Flake Script Needs an Explicit Shell
Nix devShells inherit the user's login shell. If your flake defines shell functions or scripts without writeShellScriptBin, they silently break for anyone not running bash. Here's the fix — and the stricter variant you probably want instead.