diff --git a/nix/mobile/ios/xcbeautify.nix b/nix/mobile/ios/xcbeautify.nix index f4fcb5698f5d..10986f924ebb 100644 --- a/nix/mobile/ios/xcbeautify.nix +++ b/nix/mobile/ios/xcbeautify.nix @@ -1,13 +1,20 @@ { stdenv, fetchurl, unzip, lib }: +let + inherit (lib) getAttr; +in stdenv.mkDerivation rec { pname = "xcbeautify"; version = "1.1.1"; + arch = if stdenv.hostPlatform.isAarch64 then "arm64" else "x86_64"; src = fetchurl { - url = "https://github.com/tuist/xcbeautify/releases/download/${version}/xcbeautify-${version}-universal-apple-macosx.zip"; - sha256 = "sha256-YZXg+XpOhAZfynp8uak/WHCfQ89Bg1bS5LgsWUYwYww="; - }; + url = "https://github.com/tuist/xcbeautify/releases/download/${version}/xcbeautify-${version}-${arch}-apple-macosx.zip"; + sha256 = getAttr arch { + arm64 = "sha256-VaZBWZNx5iZxjpsVbKQA4wVsigjlhArDCsQXY/RBDx4="; + x86_64 = "sha256-Q1t4nHQu05mPqNRmL0KQukGRAHdkQHM7H24ar0isQTo="; + }; + }; buildInputs = [ unzip ];