Skip to content

hadrian/build.cabal.offline.sh

Oleg Grenrus requested to merge phadej/ghc:hadrian-cabal-offline into master
  • First commit is a clean-up of cabal.build.sh, which could be cherry-picked as is.
  • Second commit is new cabal.build.offline.sh script itself:

Proof-of-concept offline build of hadrian

Starting with version 3.2 cabal-install will support local, no-index repositories. See https://github.com/haskell/cabal/issues/6359 for details. Using that feature, we can easily build hadrian itself in offline conditions. That will be handy for distribution packagers.

The fetch.sh script is generated with cabal-bundler tool from https://github.com/phadej/cabal-extras, yet it's easy to amend manually.

cc @hvr

Merge request reports