nix-community / vagrant-nixos-plugin

Vagrant plugin to add nixos guest capabilities and nix provisioning [maintainer=@zimbatm]
MIT License
68 stars 7 forks source link

How to compile from source #16

Open 4levels opened 3 years ago

4levels commented 3 years ago

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:

Background: 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.

4levels commented 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 ;-)