An easy to use Linux builder for macOS [maintainer=@nicknovitski]
Go to file
2018-04-10 14:55:20 -04:00
go-vpnkit Port the work from nixpkgs 2018-04-10 14:55:20 -04:00
hyperkit Initial commit 2018-04-02 05:57:18 -07:00
linuxkit Initial commit 2018-04-02 05:57:18 -07:00
linuxkit-builder Port the work from nixpkgs 2018-04-10 14:55:20 -04:00
virtsock Initial commit 2018-04-02 05:57:18 -07:00
vpnkit Initial commit 2018-04-02 05:57:18 -07:00
.gitignore Initial commit 2018-04-02 05:57:18 -07:00
COPYING Add license 2018-04-03 14:06:35 -07:00
default.nix Initial commit 2018-04-02 05:57:18 -07:00
example.nix Port the work from nixpkgs 2018-04-10 14:55:20 -04:00
overlay.nix Port the work from nixpkgs 2018-04-10 14:55:20 -04:00
README.md Simplify instructions a little 2018-04-03 04:52:25 -07:00

linuxkit-builder

Install the packages into the default profile:

sudo nix-env -f . -p /nix/var/nix/profiles/default -iA nixUnstable nix-script-store-plugin linuxkit-builder

Update /etc/nix/nix.conf with the plugin:

plugin-files = /nix/var/nix/profiles/default/lib/nix/plugins/libnix-script-store.dylib
builders = script:///nix/var/nix/profiles/default/bin/linuxkit-builder x86_64-linux - - - kvm,big-parallel

Restart nix-daemon:

sudo launchctl unload /Library/LaunchDaemons/org.nixos.nix-daemon.plist
sudo launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist

Now you can run builds but at the moment you have to use the --no-sandbox flag:

nix-build --no-sandbox example.nix