I'm seeing some strange errors when using Stack with Nix integration enabled.
Globally:
$ stack --version
Version 1.0.1 x86_64
$ stack setup # doesn't make a difference if this line is executed or not
$ stack --nix install happy # won't work
Run from outside a project, using implicit global project config
Using resolver: lts-4.0 from implicit global project's config file: /home/david/.stack/global-project/stack.yaml
No compiler found, expected minor version match with ghc-7.10.3 (x86_64) (based on resolver setting in /home/david/.stack/global-project/stack.yaml).
Try running "stack setup" to install the correct GHC into /home/david/.stack/programs/x86_64-linux-nix/
$ stack --nix setup # doing what stack told me to do...
Run from outside a project, using implicit global project config
Using resolver: lts-4.0 from implicit global project's config file: /home/david/.stack/global-project/stack.yaml
Preparing to install GHC to an isolated location.
This will not interfere with any system-level installation.
Already downloaded.
Unpacking GHC into /run/user/1000/stack-setup9737/ ...
<snip>
/nix/store/60zf1xjmhwbf4g42724wrrj6ydy45cch-gnutar-1.28/bin/tar: ghc-7.10.3/utils/count_lines/ghc.mk: Cannot write: No space left on device
/nix/store/60zf1xjmhwbf4g42724wrrj6ydy45cch-gnutar-1.28/bin/tar: ghc-7.10.3/utils/compare_sizes/ghc.mk: Cannot write: No space left on device
/nix/store/60zf1xjmhwbf4g42724wrrj6ydy45cch-gnutar-1.28/bin/tar: ghc-7.10.3/utils/compare_sizes/dist-install/package-data.mk: Cannot write: No space left on device
/nix/store/60zf1xjmhwbf4g42724wrrj6ydy45cch-gnutar-1.28/bin/tar: ghc-7.10.3/utils/compare_sizes/dist-install/build/.depend.haskell: Cannot write: No space left on device
/nix/store/60zf1xjmhwbf4g42724wrrj6ydy45cch-gnutar-1.28/bin/tar: ghc-7.10.3/utils/compare_sizes/dist-install/build/.depend.c_asm: Cannot write: No space left on device
/nix/store/60zf1xjmhwbf4g42724wrrj6ydy45cch-gnutar-1.28/bin/tar: ghc-7.10.3/mk/project.mk: Cannot write: No space left on device
/nix/store/60zf1xjmhwbf4g42724wrrj6ydy45cch-gnutar-1.28/bin/tar: ghc-7.10.3/mk/install.mk.in: Cannot write: No space left on device
/nix/store/60zf1xjmhwbf4g42724wrrj6ydy45cch-gnutar-1.28/bin/tar: ghc-7.10.3/bindist.mk: Cannot write: No space left on device
/nix/store/60zf1xjmhwbf4g42724wrrj6ydy45cch-gnutar-1.28/bin/tar: ghc-7.10.3/libraries/gen_contents_index: Cannot write: No space left on device
/nix/store/60zf1xjmhwbf4g42724wrrj6ydy45cch-gnutar-1.28/bin/tar: ghc-7.10.3/libraries/prologue.txt: Cannot write: No space left on device
/nix/store/60zf1xjmhwbf4g42724wrrj6ydy45cch-gnutar-1.28/bin/tar: Exiting with failure status due to previous errors
Note that there is plenty of space left on all my partitions, and I can reproduce this on another computer.
Within a project:
$ stack new test-project --resolver lts-3.0
$ cd test-project
$ stack --nix setup
stack will use the GHC on your PATH
For more information on paths, see 'stack path' and 'stack exec env'
To use this GHC and packages outside of a project, consider using:
stack ghc, stack ghci, stack runghc, or stack exec
$ stack --nix install happy
happy-1.19.5: configure
/run/user/1000/stack10039/happy-1.19.5/.stack-work/dist/x86_64-linux-nix/Cabal-1.22.4.0/setup/setup: singleBuild: runInteractiveProcess: exec: permission denied (Permission denied)
CC: @bitemyapp
Edit: Note that I'm using a standalone Nix install on Ubuntu
I'm seeing some strange errors when using Stack with Nix integration enabled.
Globally:
Note that there is plenty of space left on all my partitions, and I can reproduce this on another computer.
Within a project:
CC: @bitemyapp
Edit: Note that I'm using a standalone Nix install on Ubuntu