M1 support
FTR:
nix build
itself doesn't work on M1
❯ nix build
warning: Git tree '/Users/srid/code/sparkle' is dirty
error: Package ‘sdl2-mixer-1.2.0.0’ in /nix/store/gx2yx1nc9i1q0r7vszcafyv52gmdwnqw-source/pkgs/development/haskell-modules/hackage-packages.nix:248036 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)
But the impure build does:
❯ NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1 nix --impure build