On aarch64-darwin, opam sets the arch var as arm64, rather than aarch64:
$ opam var | grep arch
arch arm64 # Inferred from system
This change causes opam-nix to match regular opam.
In particular, without this fix, we accidentally pick up ocaml-option-bytecode-only (via the arch != "arm64" contstraint) for ocaml-base-compiler5.1.0, which conflicts with various other packages.
On
aarch64-darwin
,opam
sets thearch
var asarm64
, rather thanaarch64
:This change causes
opam-nix
to match regularopam
.In particular, without this fix, we accidentally pick up
ocaml-option-bytecode-only
(via thearch != "arm64"
contstraint) forocaml-base-compiler
5.1.0
, which conflicts with various other packages.