Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix simple-shell.nix #39

Merged
merged 3 commits into from
Apr 23, 2020
Merged

Conversation

supersven
Copy link
Contributor

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.

Looks like it's needed to use `head.hackage`.
@supersven
Copy link
Contributor Author

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 supersven changed the title Update used GHC Fix simple-shell.nix Apr 22, 2020
- Update nixpkgs to the revision `ghc.nix` currently uses.
- Set SSL_CERT_FILE and NIX_SSL_CERT_FILE (for `--pure` shells).
@supersven supersven marked this pull request as ready for review April 23, 2020 08:48
@supersven
Copy link
Contributor Author

SSL troubles fixed. Nixpkgs updated.

This PR relates to #25

@@ -15,12 +15,23 @@ let
sha256 = "1qz1lwk0j2r6jzpc5ssrlfcf1193ay5l23kwyda5wld5sm170ffw";
}) { pkgs = np; }).mkGhc;

# This archive will be gone on 20th May. Please update when a new build of the
# `wip/ghc-debug` branch becomes available (which will hold for another month).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I clicked the "keep" button so hopefully it doesn't disappear.

https://gitlab.haskell.org/ghc/ghc/-/jobs/312946

@mpickering mpickering merged commit 9951079 into bgamari:master Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants