haskell-vim-现在无法在nixos中安装

时间:2018-03-20 05:59:35

标签: haskell vim nixos

nixos 17.09

按照建议here

安装haskell-vim-now
  

bash<(curl -sL https://git.io/haskell-vim-now) - nix

输出让我感到困惑:

--- Creating vim config symlinks
        ~/.vimrc -> /home/tort/.config/haskell-vim-now/.vimrc
        ~/.vim   -> /home/tort/.config/haskell-vim-now/.vim
--- Installing plugins using vim-plug... 
HvnArgs {hvnArgsNoHoogleDb = False, hvnArgsNoHelperBinaries = False}
 Setting up GHC if needed... 
/bin/sh: stack: command not found 
Stack setup failed with error 127
*** setup_haskell.hs failed with error 1.
*** Aborting...

为什么脚本没有看到堆栈?

[host@host:~]$ which stack
/home/tort/.nix-profile/bin/stack

[host@host:~]$ nix-env -q '.*stack.*'
stack-1.5.1
stack2nix-0.1.3.0

提前谢谢!

1 个答案:

答案 0 :(得分:0)

在nixos中安装haskell-vim-now的另一种方法适用于我:

a_function_static.1800