[英]haskell-vim-now fail to install in nixos
尼克斯17.09
按照这里的建议安装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
先感谢您!
在nixos中安装haskell-vim-now的另一种方法对我有用:
bash <(curl -sL https://git.io/haskell-vim-now) --basic
export PATH=$HOME/.local/bin:$PATH
stack install codex hscope ghc-mod hasktags hoogle --nix
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.