Skip to content

Commit

Permalink
ngrok-2: fix aarch64-darwin logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Ringer committed Jun 6, 2021
1 parent 0c85b23 commit e977f0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/tools/networking/ngrok-2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e977f0f

Please sign in to comment.