haskell-nix icon indicating copy to clipboard operation
haskell-nix copied to clipboard

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

Open ChandraKoduru opened this issue 7 years ago • 2 comments

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 avatar Feb 23 '18 13:02 ChandraKoduru

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

ChandraKoduru avatar Mar 02 '18 14:03 ChandraKoduru

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?

Gabriella439 avatar Mar 11 '18 02:03 Gabriella439