vagrant: Install vagrant-libvirt as system plugin

This commit is contained in:
Matthew Harm Bekkema 2018-12-17 11:16:20 +11:00
parent 08488bcf94
commit 245ba973d9
2 changed files with 14 additions and 0 deletions

View File

@ -62,6 +62,11 @@ in buildRubyGem rec {
mkdir -p "$out/vagrant-plugins/plugins.d"
echo '{}' > "$out/vagrant-plugins/plugins.json"
'' +
lib.optionalString withLibvirt ''
substitute ${./vagrant-libvirt.json.in} $out/vagrant-plugins/plugins.d/vagrant-libvirt.json \
--subst-var-by ruby_version ${ruby.version} \
--subst-var-by vagrant_version ${version}
'';
installCheckPhase = ''

View File

@ -0,0 +1,9 @@
{
"vagrant-libvirt": {
"ruby_version":"@ruby_version@",
"vagrant_version":"@vagrant_version@",
"gem_version":"",
"require":"",
"sources":[]
}
}