vagrant: Install vagrant-libvirt as system plugin
This commit is contained in:
parent
08488bcf94
commit
245ba973d9
@ -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 = ''
|
||||
|
9
pkgs/development/tools/vagrant/vagrant-libvirt.json.in
Normal file
9
pkgs/development/tools/vagrant/vagrant-libvirt.json.in
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"vagrant-libvirt": {
|
||||
"ruby_version":"@ruby_version@",
|
||||
"vagrant_version":"@vagrant_version@",
|
||||
"gem_version":"",
|
||||
"require":"",
|
||||
"sources":[]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user