The most robust fix for this is to split hunger/thirst/fatigue into objective and subjective components.
E.g. stimulants reduce your immediate need to sleep, but do nothing for your eventual need to sleep.
Likewise, some chemicals reduce your appetite, but do nothing to supply you with energy.
With this separation, stimulants would keep you from sleeping, but the accumulating fatigue would cause penalties, and eventually either you get off the stimulants and sleep, or you keel over.