Hello,
I am running Nix on an M1 Macbook Pro, running macOS Monterey 12.0.1. When I run the following:
nix search nixpkgs#firefox-bin
I see the following results:
* legacyPackages.aarch64-darwin.firefox-bin (98.0.2)
Mozilla Firefox, free web browser (binary package)
yet when I try to install, I get the following error:
$ nix profile install nixpkgs#firefox-bin
error: Package ‘firefox-bin-98.0.2’ in /nix/store/m2vv0bxfchzrjngx8wi0i7dhzb9q2g50-source/pkgs/applications/networking/browsers/firefox/wrapper.nix:349 is not supported on ‘aarch64-darwin’, refusing to evaluate.
a) To temporarily allow packages that are unsupported for this system, you can use an environment variable
for a single invocation of the nix tools.
$ export NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1
Note: For `nix shell`, `nix build`, `nix develop` or any other Nix 2.4+
(Flake) command, `--impure` must be passed in order to read this
environment variable.
b) For `nixos-rebuild` you can set
{ nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.
c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
{ allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.
(use '--show-trace' to show detailed location information)
I’m a little confused - I assume that if the legacyPackages.aarch64-darwin.firefox-bin
package appears in the search, the package exists and is therefore supported on my architecture. Is this package actually unsupported, or is this a bug? Am I missing some config option somewhere?