Skip to content

Commit

Permalink
chore: get separate binaries based on arch
Browse files Browse the repository at this point in the history
  • Loading branch information
siddarthkay committed Dec 22, 2023
1 parent def9544 commit e7328e3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions nix/mobile/ios/xcbeautify.nix
Original file line number Diff line number Diff line change
@@ -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 ];

Expand Down

0 comments on commit e7328e3

Please sign in to comment.