mirror of
https://github.com/nix-community/linuxkit-nix.git
synced 2024-11-22 20:54:13 +03:00
An easy to use Linux builder for macOS [maintainer=@nicknovitski]
hyperkit | ||
linuxkit | ||
linuxkit-builder | ||
virtsock | ||
vpnkit | ||
.gitignore | ||
default.nix | ||
overlay.nix | ||
README.md |
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
Restart nix-daemon:
sudo launchctl unload /Library/LaunchDaemons/org.nixos.nix-daemon.plist
sudo launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist
Then you can use the builder with the builders
flag:
nix-build --builders 'script:///nix/var/nix/profiles/default/bin/linuxkit-builder x86_64-linux - - - big-parallel'