Open 4levels opened 3 years ago
Ok, I've managed to sort this out myself after leaving it for a few days and finding the missing piece of info. All I needed to do was run bundle exec rake build
to end up with a packaged .gem
file (in pkg/
) that I was then able to import via vagrant plugin install /path/to/local/vagrant-nixos-plugin/pkg/vagrant-nixos-plugin-0.2.2.gem
As I had much trouble finding this last step (pbbly obvious for an experienced ruby developer) I'd still like to see this mentioned somewhere here in the docs as well ;-)
Hi,
I'm trying to compile this plugin from source, but I'm failing miserably. There also seems no info on how to do this.
Things I've tried:
nix-shell -p gcc gnumake
bundle install
- fails with incompatible bundle version errorvagrant-nixos-plugin.gemspec
to loosen the bundler version (> 1.5
instead of~> 1.5
) to make it compile/path/to/local/vagrant plugin install /path/to/local/vagrant-nixos-plugin
fails withBackground: there's currently a breaking issue with Vagrant and the way it composes the network configuration. I've created a PR to the Vagrant repo as the fix is really simple, but Vagrant warns explicitely that if compiled from source, all plugins need to be compiled from source as well.