From e977f0f112ad2c0212526e84791c178db7830187 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Sat, 5 Jun 2021 12:58:19 -0700 Subject: [PATCH] ngrok-2: fix aarch64-darwin logic --- pkgs/tools/networking/ngrok-2/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/networking/ngrok-2/default.nix b/pkgs/tools/networking/ngrok-2/default.nix index 0d9dbd19117e..3549677e22fc 100644 --- a/pkgs/tools/networking/ngrok-2/default.nix +++ b/pkgs/tools/networking/ngrok-2/default.nix @@ -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;