Refactor the patch to add an explicit way of specifying dependencies
on the command line so that the logic is in a separate function.
Rename functions for easier reading.
Don't use the new flag with old cabals:
https://github.com/haskell/cabal/pull/1470#issuecomment-26668599