Skip to content

nixFlakes fails to build on aarch64-darwin #124814

@purcell

Description

@purcell

Describe the bug

nixFlakes doesn't build on this system type, which then blocks other dependent tools from building, e.g. the nix-direnv module integration.

To Reproduce

Steps to reproduce the behavior:

  1. On an M1 machine using the nixpkgs-unstable channel, check out nixpkgs master (currently 976ee28 for me)
  2. nix-build --argstr localSystem aarch64-darwin -A nixFlakes

Expected behavior

Successful build.

Screenshots

  CXX    src/resolve-system-dependencies/resolve-system-dependencies.o
  GEN    scripts/nix-http-export.cgi
  CXX    src/libcmd/markdown.o
  GEN    scripts/nix-profile.sh
  GEN    scripts/nix-reduce-build
  GEN    doc/manual/nix-env.1
lowdown: sandbox_init: Operation not permitted
make: *** [doc/manual/local.mk:28: doc/manual/nix-env.1] Error 1
make: *** Waiting for unfinished jobs....
builder for '/nix/store/pv51gkfqicxdib8c26plmjg7mphknnbz-nix-2.4pre20210503_6d2553a.drv' failed with exit code 2

Additional context
Add any other context about the problem here.

Notify maintainers

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
  - nixFlakes
# a list of nixos modules affected by the problem
module:

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: darwinRunning or building packages on Darwin

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions