Skip to content

Commit

Permalink
fix_: include missing frameworks for x86_64-darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
mendelskiv93 committed Oct 11, 2024
1 parent fa7dace commit 22ac6a3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nix/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ let
inherit (pkgs) lib stdenv callPackage;
/* No Android SDK for Darwin aarch64. */
isMacM1 = stdenv.isDarwin && stdenv.isAarch64;
isMacIntel = stdenv.isDarwin && stdenv.isx86_64;

/* Lock requires Xcode verison. */
xcodeWrapper = callPackage ./pkgs/xcodeenv/compose-xcodewrapper.nix { } {
Expand All @@ -16,14 +17,19 @@ let
inherit xcodeWrapper;
withAndroidPkgs = !isMacM1;
};

in pkgs.mkShell {
name = "status-go-shell";

buildInputs = with pkgs; [
git jq which
go golangci-lint go-junit-report gopls go-bindata gomobileMod codecov-cli
mockgen protobuf3_20 protoc-gen-go gotestsum go-modvendor openjdk cc-test-reporter
] ++ lib.optionals (stdenv.isDarwin) [ xcodeWrapper ];
] ++ lib.optionals (stdenv.isDarwin) [ xcodeWrapper ]
++ lib.optionals (isMacIntel) [
pkgs.darwin.apple_sdk_11_0.frameworks.Security
pkgs.darwin.apple_sdk_11_0.frameworks.CoreServices
];

shellHook = lib.optionalString (!isMacM1) ''
ANDROID_HOME=${pkgs.androidPkgs.androidsdk}/libexec/android-sdk
Expand Down

0 comments on commit 22ac6a3

Please sign in to comment.