begriffs / haskell-vim-now

One-line Haskell Vim install
MIT License
988 stars 100 forks source link

Installation on NixOS failed 'stack build' #284

Closed p-alik closed 6 years ago

p-alik commented 6 years ago

Installation on NixOS 17.09 with stack Version 1.6.3 failed with trace below.

$ ./install.sh --dry-run
--> Existing Haskell-Vim-Now installation detected at /home/palik/.config/haskell-vim-now.
--- Syncing Haskell-Vim-Now with upstream...
Current branch master is up to date.
--- No new packages needed for install...
--- Checking ctags' exuberance...
--- Setting git to use fully-pathed vim for messages...
--- Backing up current vim config using timestamp 20180117_200525...
        /home/palik/.config/haskell-vim-now/backup/.vim.20180117_200525
        /home/palik/.config/haskell-vim-now/backup/.vimrc.20180117_200525
--- Creating vim config symlinks
        ~/.vimrc -> /home/palik/.config/haskell-vim-now/.vimrc
        ~/.vim   -> /home/palik/.config/haskell-vim-now/.vim
--- Installing plugins using vim-plug...
Downloaded ghc-8.0.2.                                      
Running /home/palik/.stack/programs/x86_64-linux/ghc-8.0.2.temp/ghc-8.0.2/configure --prefix=/home/palik/.stack/programs/x86_64-linux/ghc-8.0.2/ in directory /home/palik/.stack/programs/x86_64-linux/ghc-8.0.2.temp/ghc-8.0.2/ exited with ExitFailure 1

checking for path to top of build tree... 
/home/palik/.stack/programs/x86_64-linux/ghc-8.0.2.temp/ghc-8.0.2/configure: utils/ghc-pwd/dist-install/build/tmp/ghc-pwd-bindist: /bin/bash: bad interpreter: No such file or directory
configure: error: cannot determine current directory

Error: Error encountered while configuring GHC with
         /home/palik/.stack/programs/x86_64-linux/ghc-8.0.2.temp/ghc-8.0.2/configure --prefix=/home/palik/.stack/programs/x86_64-linux/ghc-8.0.2/
         run in /home/palik/.stack/programs/x86_64-linux/ghc-8.0.2.temp/ghc-8.0.2/

       The following directories may now contain files, but won't be used by stack:
         - /home/palik/.stack/programs/x86_64-linux/ghc-8.0.2.temp/
         - /home/palik/.stack/programs/x86_64-linux/ghc-8.0.2/

Configuring GHC ...*** setup_haskell.hs failed with error 1.
*** Aborting...

The issue could be solved by passing --nix parameter to stack in install.sh

jship commented 6 years ago

Closing this now that #285 is merged. Thanks!