snowleopard / hadrian

Hadrian: a new build system for the Glasgow Haskell Compiler. Now merged into the GHC tree!
https://gitlab.haskell.org/ghc/ghc/tree/master/hadrian
MIT License
208 stars 37 forks source link

nix.shell: can't build happy #609

Closed sgillespie closed 6 years ago

sgillespie commented 6 years ago

I'm running NixOS, and I'm running nix-shell from ghc/hadrian:

Linking dist/build/happy/happy ...
haddockPhase
installing
: getDirectoryContents:openDirStream: does not exist (No such file or directory)
builder for '/nix/store/mqfjgf36rpzxmc7142nsh8h0lrfxpglj-happy-1.19.8.drv' failed with exit code 1
cannot build derivation '/nix/store/lllrigz3fby0pbf01lakmzgz5y057xxf-hadrian-0.1.0.0.drv': 1 dependencies couldn't be built
error: build of '/nix/store/lllrigz3fby0pbf01lakmzgz5y057xxf-hadrian-0.1.0.0.drv' failed

Any idea what to do here or how to get more information?

snowleopard commented 6 years ago

@sgillespie Thanks for reporting! I'm not a nix user myself, but let's ping @mpickering and @angerman who regularly commit to shell.nix.

mpickering commented 6 years ago

It's not clear what is happening here but @bgamari also ran into this same issue. I ran into it trying to build a different haskell project with HEAD.

mpickering commented 6 years ago

See https://github.com/haskell/cabal/issues/5318

sgillespie commented 6 years ago

This resolved it for me:

https://git.haskell.org/ghc.git/commitdiff/14f4347c28a2d8d45e795fd01bc0e547fe8738e6