Change the arch to be llvm-triple like.
E.g. rustup.sh
does
Current installation options:
default host triple: x86_64-unknown-linux-gnu
I think we can borrow the logic from there. Then the .download-urls
would look like
# tool version arch distro url
ghc 8.0.2 x86_84-*-darwin * https://...-apple-darwin.tar.xz
ghc 8.0.2 x86_84-*-linux-* debian=8 https://...-deb8-linux.tar.xz
ghc 8.0.2 x86_84-*-linux-* * https://...-unknown-linux.tar.xz
See https://github.com/haskell/ghcup/pull/44#issuecomment-437827904 for original idea.