ngrok-2: fix aarch64-darwin logic

This commit is contained in:
Jonathan Ringer 2021-06-05 12:58:19 -07:00 committed by Jonathan Ringer
parent 0c85b23e25
commit e977f0f112

View file

@ -9,7 +9,8 @@ let versions = builtins.fromJSON (builtins.readFile ./versions.json);
else if stdenv.isAarch64 then "arm64"
else throw "Unsupported architecture";
os = if stdenv.isLinux then "linux"
else if stdenv.isDarwin then "darwin"
else if (stdenv.isDarwin && stdenv.isx86_64) then "darwin"
else if stdenv.isDarwin then throw "Unsupported architecture"
else throw "Unsupported os";
versionInfo = versions."${os}-${arch}";
inherit (versionInfo) version sha256 url;