Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nix bundle fails with Access denied! #22

Open
ElrohirGT opened this issue Jan 15, 2025 · 1 comment
Open

nix bundle fails with Access denied! #22

ElrohirGT opened this issue Jan 15, 2025 · 1 comment

Comments

@ElrohirGT
Copy link

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!

@Cloudef
Copy link
Owner

Cloudef commented Jan 16, 2025

It's not tested and might be broken. I'll check later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants