fission-codes / auth-lobby

The authentication service that Fission services run.
https://auth.fission.codes
GNU Affero General Public License v3.0
12 stars 1 forks source link

Add rosetta nix override #91

Closed bgins closed 3 years ago

bgins commented 3 years ago

Summary

This PR fixes/implements the following bugs/features

The nix shell will not build on machines with the aarch64 architecture. This change lets us override and use x86_64.

Test plan (required)

On an M1 mac, set up the nix with

nix-shell --arg rosetta true

Note that your /etc/nix/nix.conf will need to contain this line:

extra-platforms = x86_64-darwin
expede commented 3 years ago

Also would recommend bumping Niv while you have the hood up

bgins commented 3 years ago

Done! I also added niv to shell.nix to make it easier to upgrade if you don't have niv installed by another means.