parinfer-rust: fix vim plugin

This commit is contained in:
José Luis Lafuente 2021-09-17 15:16:37 +02:00
parent 79c444b5bd
commit b590bf7063
No known key found for this signature in database
GPG key ID: 8A3455EBE455489A

View file

@ -21,10 +21,10 @@ rustPlatform.buildRustPackage rec {
mkdir -p $out/share/kak/autoload/plugins
cp rc/parinfer.kak $out/share/kak/autoload/plugins/
rtpPath=$out/share/vim-plugins/parinfer-rust
mkdir -p $rtpPath/plugin
rtpPath=$out/plugin
mkdir -p $rtpPath
sed "s,let s:libdir = .*,let s:libdir = '${placeholder "out"}/lib'," \
plugin/parinfer.vim >$rtpPath/plugin/parinfer.vim
plugin/parinfer.vim > $rtpPath/parinfer.vim
'';
meta = with lib; {