Support for ghcup in NixOS
What's the current status of ghcup in NixOS ? Is it a supported tool for NixOS distribution ?
I did try to use it, but it didn't work in my attempts:
[nix-shell:~]$ ghcup install ghc 8.10.5
[ Warn ] New GHCup version available: 0.1.15.2. To upgrade, run 'ghcup upgrade'
[ Info ] downloading: https://downloads.haskell.org/~ghc/8.10.5/ghc-8.10.5-x86_64-fedora27-linux.tar.xz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 208M 100 208M 0 0 344k 0 0:10:17 0:10:17 --:--:-- 180k
[ Info ] verifying digest of: ghc-8.10.5-x86_64-fedora27-linux.tar.xz
[ Warn ] CC/LD environment variable is set. This will change the compiler/linker
[ Warn ] GHC uses internally and can cause defunct GHC in some cases (e.g. in Anaconda
[ Warn ] environments). If you encounter problems, unset CC and LD and reinstall.
[ Info ] Unpacking: ghc-8.10.5-x86_64-fedora27-linux.tar.xz to /run/user/1000/ghcup-edCqO9
[ Info ] Installing GHC (this may take a while)
[ ghc-make ] /nix/store/a4v1akahda85rl9gfphb07zzw79z8pb1-coreutils-8.32/bin/install -c -m 755 -d "/home/sibi/.ghcup/ghc/8.10.5/lib/ghc-8.10.5/rts"
[ ghc-make ] for i in rts/dist/build/libHSrts.a rts/dist/build/libHSrts_p.a rts/dist/build/libHSrts-ghc8.10.5.so rts/dist/build/libHSrts_l.a rts/dist/build/libHSrts_debug.a rts/dist/build/libHSrts_thr.a rts/dist/build/libHSrts_...
[ ghc-make ] "utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist" copy libraries/ghc-prim dist-install "strip" '' '/home/sibi/.ghcup/ghc/8.10.5' '/home/sibi/.ghcup/ghc/8.10.5/lib/ghc-8.10.5' '/home/sibi/.ghcup/ghc/8.10.5/s...
[ ghc-make ] utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist: line 3: /run/user/1000/ghcup-edCqO9/ghc-8.10.5/utils/ghc-cabal/dist-install/build/tmp/ghc-cabal: No such file or directory
[ ghc-make ] make[1]: *** [ghc.mk:984: install_packages] Error 127
[ ghc-make ] make: *** [Makefile:51: install] Error 2
[ Error ] BuildFailed failed in dir "/run/user/1000/ghcup-edCqO9": NonZeroExit 2 "make" ["install"]
Check the logs at "/home/sibi/.ghcup/logs" and the build directory "/run/user/1000/ghcup-edCqO9" for more clues.
Make sure to clean up "/run/user/1000/ghcup-edCqO9" afterwards.
Other tools like rustup
is working fine in NixOS, so probably NixOS isn't supported now ?