nativelink
nativelink copied to clipboard
Broken nix flake on `aarch64-darwin`
Description
I'm encountering issues when running nix flake show --allow-import-from-derivation
on MacOS (aarch64-darwin). The command results in an error that halts the process. It appears that there are issues in building the nixpkgs-patched with the wrong architecture.
Warnings & Errors
error:
… while evaluating the attribute 'optionalValue.value'
at /nix/store/l04ifn08y80fcd3iblpzfr0fj0pqc58z-source/modules.nix:856:5:
855|
856| optionalValue =
| ^
857| if isDefined then { value = mergedValue; }
… while evaluating a branch condition
at /nix/store/l04ifn08y80fcd3iblpzfr0fj0pqc58z-source/modules.nix:857:7:
856| optionalValue =
857| if isDefined then { value = mergedValue; }
| ^
858| else {};
(stack trace truncated; use '--show-trace' to show the full trace)
error: a 'aarch64-linux' with features {} is required to build '/nix/store/jrhk2sdi1dij7hka434irlb1rnw4xv51-nixpkgs-patched.drv', but I am a 'aarch64-darwin' with features {apple-virt, benchmark, big-parallel, nixos-test}
Environment
Operating System: MacOS Architecture: aarch64-darwin Nix Version: nix (Nix) 2.19.2 Nativelink Version: 0.5.1
Steps to Reproduce
Run nix flake show --allow-import-from-derivation
on MacOS with aarch64-darwin architecture.
Observe the warnings and errors during the evaluation.
Expected Behavior
The nix flake show --allow-import-from-derivation
command should complete successfully or provide actionable feedback without encountering fatal errors.