Merge pull request #138277 from jlesquembre/parinfer-rust

parinfer-rust: fix vim plugin
This commit is contained in:
Jörg Thalheim 2021-09-17 15:10:49 +01:00 committed by GitHub
commit 99fad18179
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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; {