zig2nix
zig2nix copied to clipboard
nix bundle fails with Access denied!
Hi! I'm trying to check that bundling my application to other platforms works! But when I try to run bundle it if fails with the next log:
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/gill5xr3ia89d0h4ig0cmwv3a1dljzyz-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
no configure script, doing nothing Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
zig build flags: -Dcpu=baseline --release=safe --color off -Doptimize=ReleaseSafe -Dtarget=aarch64-macos.11.0-none --sysroot /nix/store/dvjm65jszc6pmnijqpchyhcdqrm8lf0g-MacOSX-SDK-11.0.0
error: AccessDenied
Honestly I've never used nix bundle before... It works on the default bundle but once I try to compile to other arch it fails with the same error, it doesn't matter if is windows, macos or even linux but with musl instead of gnu.
This is the flake.nix and here's an example CI fail
Any help would be greatly appreciated!
It's not tested and might be broken. I'll check later.