-
-
Notifications
You must be signed in to change notification settings - Fork 14k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vagrant: add vagrant-aws plugin #144799
base: master
Are you sure you want to change the base?
vagrant: add vagrant-aws plugin #144799
Conversation
73883b9
to
1bec56c
Compare
substitute ${./vagrant-libvirt.json.in} $out/vagrant-plugins/plugins.d/vagrant-libvirt.json \ | ||
substitute ${./vagrant-plugin.json.in} $out/vagrant-plugins/plugins.d/vagrant-libvirt.json \ | ||
--subst-var-by pname libvirt \ | ||
--subst-var-by ruby_version ${ruby.version} \ | ||
--subst-var-by vagrant_version ${version} | ||
'' + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you create a small helper. I consider adding vagrant-sshfs and reuse that code.
# dependencies of these two plugins conflict | ||
assert !(withLibvirt && withAws); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is still the case in 2024 and what command did you use to generate the gemset ? Also use throwIf instead of assert
Motivation for this change
Got frustrated trying to get the
vagrant-aws
plugin working the "normal" way and so created a package for it. Generating thegemset_aws.nix
for it was ugly, let's not go into it. Tried to essentially follow the pattern of thelibvirt
plugin. I realize this isn't the most extensible pattern, but it does the job for now.Unfortunately the dependencies of
vagrant-aws
conflict with those ofvagrant-libvirt
so I've disabled it by default and added an assertion to alert anyone trying to enable both together. I realize this isn't great, but it solves the problem for me.Package was requested in #121161.
Edit(@tomodachi94): Fixes #121161.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)