(This etymology is missing or incomplete. Please add to it, or discuss it at the Etymology scriptorium.)
Compare French dernier.
dèrnyi m