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

Failing: nix-build --attr project1 release2.nix #42

Open
ChandraKoduru opened this issue Feb 23, 2018 · 2 comments
Open

Failing: nix-build --attr project1 release2.nix #42

ChandraKoduru opened this issue Feb 23, 2018 · 2 comments

Comments

@ChandraKoduru
Copy link

Hi,

I was following along on this page: https://github.com/Gabriel439/haskell-nix/tree/master/project1

The above nix-build command has failed.

Even nix-build --attr project1 release3.nix is failing due to process pkg.

I tried using different versions 1.4*, 1.3, taking cue from the other .nix styles. More dependency failures and infinite-recursion failures are occurring now.

I am on ubuntu (16.04), Nix(1.11.16), Failing on Nix(2.0) too.

Pasting below the log:


Setup: Encountered missing dependencies:
QuickCheck ==2.8.*, process >=1.0 && <1.5
builder for ‘/nix/store/nkgwmcc89hqa5qys16s2vk1xf82381f7-optparse-applicative-0.13.0.0.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/kalxz4kz5n541gvpqqpidpdj6majn5lj-turtle-1.3.2.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/c308453anpfgsq9ka87m4wvwmgbvnyan-project1-1.0.0.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/c308453anpfgsq9ka87m4wvwmgbvnyan-project1-1.0.0.drv’ failed


@ChandraKoduru
Copy link
Author

I got it working by using:

  1. optparse-applicative-0.14.0.0
  2. turtle-1.5.4

It is working for both release2.nix and release3.nix

@Gabriella439
Copy link
Owner

So, looking at this more closely, I think this example will be pretty high-maintenance to keep up to date as packages change over time. How about I put an advisory at the beginning of the section that the examples may not build but that they might still illustrate general concepts?

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

No branches or pull requests

2 participants