tweag / opam-nix

Turn opam-based OCaml projects into Nix derivations
MIT License
111 stars 33 forks source link

fix: report aarch64-darwin as arch = arm64 #60

Closed actionshrimp closed 1 year ago

actionshrimp commented 1 year ago

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-compiler 5.1.0, which conflicts with various other packages.

balsoft commented 1 year ago

Thanks!