Skip to content

nix bundle fails with Access denied! #22

@ElrohirGT

Description

@ElrohirGT

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions