ngrok: fix build on aarch64-darwin

This commit is contained in:
Jason R. McNeil 2021-07-14 11:14:12 -07:00
parent d75b67bfa4
commit c612c5a555

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;