Hello,

I am trying to package the vim script haskell-mode [1] for NixOS. The
revelevant part of my Nix expression is the following

> phases = [ "installPhase" ];
> buildInputs = [ vim ];
> installPhase = ''
>   VIMDIR=$(ls ${vim}/share/vim)
>   ensureDir "share/vim/$VIMDIR"
>   cd "share/vim/$VIMDIR"
>   vim -c "so % | qa" "$src"
> '';

Notice that $src points to the vimball file which is downloaded by
fetchurl. However, I get the following error upon installation of the
Nix expression via nix-env.

> E492: Not an editor command: UseVimball

It appears as if the plugin vimballPackage.vim is not loaded. However,
running the above vim command with the -V flag gives:

> ...
> sourcing 
> "/nix/store/wcwi8vc1y5126wdcbynxg0lxzmrj3vqa-vim-7.3/share/vim/vim73/p
ugin/vimballPlugin.vim"
> finished sourcing 
> /nix/store/wcwi8vc1y5126wdcbynxg0lxzmrj3vqa-vim-7.3/share/vim
vim73/plugin/vimballPlugin.vim
> ...

which appears to be right. What am I doing wrong with this approach?

Regards
Alexander Foremny

[1] http://projects.haskell.org/haskellmode-vim/
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to