Closed p-alik closed 6 years ago
@p-alik thanks, this looks like it makes sense. By the way, does the --nix
option make all the helper binaries build properly, including ghc-mod? We've had trouble with that one lately.
This PR needs a rebase against one of my changes. Also could you document your option in the Readme?
By the way, does the --nix option make all the helper binaries build properly, including ghc-mod?
unfortunately no. The installation breaks on NixOS 17.09 and I couldn't solve the issue yet.
--- 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...
After installation vim
complains on start:
[vimproc] vimproc's DLL: "/home/me/.config/haskell-vim-now/.vim/bundle/vimproc.vim/lib/vimproc_unix.so" is not found. Please read :help vimproc and make it.
ghcmod: vimproc.vim is not installed!
Both issues could be solved manually:
vimproc
cd ~/.config/haskell-vim-now/.vim/bundle/vimproc.vim/lib/
nix-env -i vimplugin-vimproc-vim
ln -s `nix-build --no-out-link "<nixpkgs>" -A vimPlugins.vimproc`/share/vim-plugins/vimproc-vim/lib/vimproc_unix.so .
ghcmod
cd ~/.config/haskell-vim-now/.vim/bundle/
nix-env -i vimplugin-ghcmod
rm ghcmod-vim
ln -s `nix-build --no-out-link "<nixpkgs>" -A vimPlugins.ghcmod`/share/vim-plugins
This PR needs a rebase against one of my changes.
done
Also could you document your option in the Readme?
also done.
I didn't mention it in README, but on NixOS you have to extend PATH
variable to take over missing of curl-config
exception:
*** Installer requires 'curl-config'. Please install and try again.
*** Aborting...
See can't find curl-config on NixOS
Installation instruction I use:
PATH=`nix-build --no-out-link "<nixpkgs>" -A curl.dev`/bin:$PATH ./install.sh --repo git@github.com:p-alik/haskell-vim-now.git --nix
Hi @p-alik, I'd like to do a quick smoke test of the standard non-nix path with these changes and then we'll merge it in. I'll most likely test it tonight.
Thanks for your work!
It's my please to contribute to the project I enjoy use for years ;-)
Worked fine!
I've been able to solve the issue #284
$ ./install.sh --nix --repo git@github.com:p-alik/haskell-vim-now.git