Merge pull request #130227 from jasonrm/fix/ngrok-on-aarch64-darwin

ngrok: fix build on aarch64-darwin
This commit is contained in:
Pavol Rusnak 2021-07-14 23:21:35 +02:00 committed by GitHub
commit 8230082bc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,8 +9,7 @@ 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 && stdenv.isx86_64) then "darwin"
else if stdenv.isDarwin then throw "Unsupported architecture"
else if stdenv.isDarwin then "darwin"
else throw "Unsupported os";
versionInfo = versions."${os}-${arch}";
inherit (versionInfo) version sha256 url;