Package Details: ghcup-hs-bin 0.1.11-2

Git Clone URL: https://aur.archlinux.org/ghcup-hs-bin.git (read-only, click to copy)
Package Base: ghcup-hs-bin
Description: an installer for the general purpose language Haskell
Upstream URL: https://gitlab.haskell.org/haskell/ghcup-hs
Licenses: LGPL3
Conflicts: ghcup-git
Submitter: amesgen
Maintainer: amesgen
Last Packager: amesgen
Votes: 5
Popularity: 0.89
First Submitted: 2020-04-19 00:41
Last Updated: 2020-09-23 11:59

Dependencies (3)

Required by (0)

Sources (4)

Latest Comments

hasufell commented on 2020-09-23 07:08

The correct hash is 99d97c9a1dce76892001e5cffd50cc23bf804f2282998c546d1b965aa2179699

There was a "failed" release, which I overwrote later. The web cache should have been cleared. Check https://www.haskell.org/ghcup/data/ghcup-0.0.3.yaml for the hashes.

pepper_chico commented on 2020-09-22 22:49

==> Validating source files with sha256sums...
    ghcup-0.1.11 ... FAILED
    ghcup-comp-bash-0.1.11 ... Passed
    ghcup-comp-zsh-0.1.11 ... Passed
    ghcup-comp-fish-0.1.11 ... Passed
==> ERROR: One or more files did not pass the validity check!

amesgen commented on 2020-07-24 12:05

@hasufell Thanks, ghcup is a very nice project!

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 am also not sure about that. I just tested it in a archlinux/base docker container, and all dependencies of ghc-8.10.1 and cabal were already installed (for example gcc via base-devel and zlib as a transitive dep of gcc), so I don't think it is worth to add all of them as optional deps.

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.

Yeah, I have no problem with making curl a "hard" dep. As curl is a dep of pacman, it will always be installed, so this is a mostly theoretical discussion. Also, as you know ofc, https://gitlab.haskell.org/haskell/ghcup-hs/-/merge_requests/25 might fix the ghcup part.

For better shell integration [...]

Adding two dirs to PATH is trivial, so I don't think that adding a special helper file only for bash is really useful. For comparison, rustup also does nothing like this.

hasufell commented on 2020-07-22 20:22

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.