bgamari / ghc-debug

Moved to Haskell.org GitLab.
https://gitlab.haskell.org/ghc/ghc-debug
62 stars 10 forks source link

Fix simple-shell.nix #39

Closed supersven closed 4 years ago

supersven commented 4 years ago

This creates a build environment that can compile (cabal new-build --enable-tests) the project.

Unfortunately the system tests currently do not terminate. As I've got the same issue with my locally built GHC, I think it's not due to this nix script.

supersven commented 4 years ago

Only known issue: Looks like the SSL certificates of the nixpkgs are outdated, so a --pure shell enviroment doesn't work:

 ✘ sven@lappy  ~/src/ghc-debug   fix_simple-shell.nix  nix-shell simple-shell.nix --pure                                                                                  ~/src/ghc-debug

[nix-shell:~/src/ghc-debug]$ cabal new-build all --enable-tests
Warning: /home/sven/.cabal/config: Unrecognized stanza on line 140
/home/sven/.cabal/config: Unrecognized field installdir on line 117
Cloning into '/home/sven/src/ghc-debug/dist-newstyle/src/threepenn_-83e5301a103455fd'...
fatal: unable to access 'https://github.com/mpickering/threepenny-utils.git/': SSL certificate problem: unable to get local issuer certificate
supersven commented 4 years ago

SSL troubles fixed. Nixpkgs updated.

This PR relates to https://github.com/bgamari/ghc-debug/issues/25