Wasted many (well, small single digit number, but still too many) hours trying to figure out why my derivation worked perfectly in nix-shell but failed to find python in nix-build. Turns out it's not failing to find python, it's failing to find /usr/bin/env.

Something something assumptions something something