tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
vagrant: Install vagrant-libvirt as system plugin
Matthew Harm Bekkema
7 years ago
245ba973
08488bcf
+14
2 changed files
expand all
collapse all
unified
split
pkgs
development
tools
vagrant
default.nix
vagrant-libvirt.json.in
+5
pkgs/development/tools/vagrant/default.nix
···
62
62
63
63
mkdir -p "$out/vagrant-plugins/plugins.d"
64
64
echo '{}' > "$out/vagrant-plugins/plugins.json"
65
65
+
'' +
66
66
+
lib.optionalString withLibvirt ''
67
67
+
substitute ${./vagrant-libvirt.json.in} $out/vagrant-plugins/plugins.d/vagrant-libvirt.json \
68
68
+
--subst-var-by ruby_version ${ruby.version} \
69
69
+
--subst-var-by vagrant_version ${version}
65
70
'';
66
71
67
72
installCheckPhase = ''
+9
pkgs/development/tools/vagrant/vagrant-libvirt.json.in
···
1
1
+
{
2
2
+
"vagrant-libvirt": {
3
3
+
"ruby_version":"@ruby_version@",
4
4
+
"vagrant_version":"@vagrant_version@",
5
5
+
"gem_version":"",
6
6
+
"require":"",
7
7
+
"sources":[]
8
8
+
}
9
9
+
}