Hi, I'm the maintainer of ghcup. Nice work!
I'm wondering if it makes sense to add all of the GHC/Cabal dependencies as optional (the ones you need to use the ghc binary etc.): gcc, gmp, libffi, ncurses
.
I'm not sure whether I would consider curl optional. It's true you can tell both ghcup and cabal to use wget, but both use curl as default. I guess this depends on packaging policies.
For better shell integration this package could install an /usr/share/ghcup/env
file with the following contents:
export PATH="$HOME/.cabal/bin:${GHCUP_INSTALL_BASE_PREFIX:=$HOME}/.ghcup/bin:$PATH"
And then write a post install message:
Add the following line to e.g. your .bashrc: [ -f "/usr/share/ghcup/env" ] && source /usr/share/ghcup/env
To use ghcup in your current terminal session, run: source /usr/share/ghcup/env
Cheers.
Pinned Comments
amesgen commented on 2021-07-14 15:08 (UTC)
Feel free to create issues/PRs at GitHub: https://github.com/amesgen/ghcup-pkgbuild