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

generic-stack-builder crashes with infinite recursion #26441

Closed
arianvp opened this issue Jun 7, 2017 · 2 comments
Closed

generic-stack-builder crashes with infinite recursion #26441

arianvp opened this issue Jun 7, 2017 · 2 comments

Comments

@arianvp
Copy link
Member

arianvp commented Jun 7, 2017

Issue description

I tried the generic stack builder haskell.lib.buildStackProject but it crashes

Steps to reproduce

❯stack new haskell-test
❯echo << EOF
{ pkgs ? (import <nixpkgs> {})}:
with pkgs;
haskell.lib.buildStackProject {
  name = "haskell-test";
  buildInputs = [];
} EOF > default.nix

❯ nix-build           
error: infinite recursion encountered, at /nix/store/39mxghirb766z1969z185a7c889vzbyv-nixpkgs-17.09pre108299.ec9a23332f/nixpkgs/pkgs/development/haskell-modules/generic-stack-builder.nix:8:9
(use ‘--show-trace’ to show detailed location information)

Technical details

  • System:
      LSB Version:	1.4
      Distributor ID:	Arch
      Description:	Arch Linux
      Release:	rolling
      Codename:	n/a
    
  • Nix version: (run nix-env --version)
    nix-env (Nix) 1.11.9
    
  • Nixpkgs version: (run nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion)
    "17.09pre108299.ec9a23332f"
    
  • Sandboxing enabled: (run grep build-use-sandbox /etc/nix/nix.conf)
    nope
@ElvishJerricco
Copy link
Contributor

You have to provide a ghc argument. This line is supposed to make this unnecessary by providing a default ghc, but it's broken because ghc ? ghc ends up just referencing itself rather than the ghc binding from above (hence the infinite recursion).

@arianvp
Copy link
Member Author

arianvp commented Jun 13, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants