(I’m the author) The issue isn’t nix builds in general, those work fine on MacOS, the issue is cross compiling a Linux docker image, which can be much trickier. I usually end up just relying on the github CI to build it, but nix has some nice remote builder functionality that might also be worth looking into.
Thanks for the post. I've been meaning to write up remote nix builders on macOS, especially now that going cross-OS (and cross-arch) is increasingly common, though still possible! Perhaps I'll try your tutorial with my builders and see how it goes.
Comments
(I’m the author) The issue isn’t nix builds in general, those work fine on MacOS, the issue is cross compiling a Linux docker image, which can be much trickier. I usually end up just relying on the github CI to build it, but nix has some nice remote builder functionality that might also be worth looking into.
Thanks for the post. I've been meaning to write up remote nix builders on macOS, especially now that going cross-OS (and cross-arch) is increasingly common, though still possible! Perhaps I'll try your tutorial with my builders and see how it goes.