diff --git a/nix/overlay.nix b/nix/overlay.nix index 77482ea038..73c924264c 100644 --- a/nix/overlay.nix +++ b/nix/overlay.nix @@ -43,7 +43,12 @@ in { go = super.pkgs.go_1_17; buildGoPackage = super.pkgs.buildGo117Package; buildGoModule = super.pkgs.buildGo117Module; - gomobile = super.gomobile.override { + gomobile = (super.gomobile.overrideAttrs (old: { + patches = self.pkgs.fetchurl { # https://github.com/golang/mobile/pull/84 + url = "https://github.com/golang/mobile/commit/f20e966e05b8f7e06bed500fa0da81cf6ebca307.patch"; + sha256 = "sha256-TZ/Yhe8gMRQUZFAs9G5/cf2b9QGtTHRSObBFD5Pbh7Y="; + }; + })).override { # FIXME: No Android SDK packages for aarch64-darwin. withAndroidPkgs = stdenv.system != "aarch64-darwin"; androidPkgs = self.androidEnvCustom.compose;