Though I rarely use it myself, there's a lot of people that use the nix shell (based around flakes/installables) rather than the old nix-shell. It'd be pretty cool if this could be also used as a drop-in replacement for that, I just have to check whether or not it's possible to do the same --command trick or if i have to find another thing to hook into.
To detect which behavior we want, we could switch the command we call based on $0 (argv[0]) to detect whether we're called as nix-debug (-> nix-shell behavior) or nix3-debug (-> nix shell behavior).
Though I rarely use it myself, there's a lot of people that use the
nix shell(based around flakes/installables) rather than the oldnix-shell. It'd be pretty cool if this could be also used as a drop-in replacement for that, I just have to check whether or not it's possible to do the same--commandtrick or if i have to find another thing to hook into.To detect which behavior we want, we could switch the command we call based on
$0(argv[0]) to detect whether we're called asnix-debug(->nix-shellbehavior) ornix3-debug(->nix shellbehavior).