cabal.mk machinery already does this, but hs-cabal-install is special, because here we're bootstrapping. Approved by: tcberner (mentor, implicit)