Open peacememories opened 7 months ago
The upstream default bundler does not support aarch64-darwin: https://github.com/matthewbauer/nix-bundle/blob/master/flake.nix#L7 . This is very likely due to nix-user-chroot requiring linux namespaces... and well, not available on darwin.
It would be great to have this and to have "cross-bundling" better supported.
That would make it hard to support darwin, true 😅 Although it would still be nice to be able to start the bundling from my mac and have it run on the build server in the background. I did also run into the problem with namespaces when trying to run a completed bundle on an old CentOS7 machine, but that's a different problem altogether^^
Describe the bug
When running e.g.
nix bundle nixpkgs#hello
onaarch64-darwin
, it fails with the following error:Steps To Reproduce
nix-command
andflakes
experimental featuresnix bundle nixpkgs#hello
Expected behavior
I would expect a self-extracting zip with the
hello
command to be created.nix-env --version
outputAdditional context
Trying something like
nix bundle nixpkgs#legacyPackages.x86_64-linux.hello
results in the same error. I was originally trying to bundlemurmur
for linux (using a build server which is set up) from my macOS machine when I ran into this error.