Skip to content

Commit a1fc5a4

Browse files
jakubgsibrkhalil
authored andcommitted
nix: patch gomobile to sanitize xcrun output
This resolves issues with weird `status-go` build errors like: ``` cgo: C compiler "2022-09-07" not found: exec: "2022-09-07": executable file not found in $PATH ``` Such errors are caused by `xcrun` spewing warnings to `stdout`. The PR to fix this issue permanently has been created but it might take a while before it's merged. Fix PR: golang/mobile#84 Resolves: #13949 Signed-off-by: Jakub Sokołowski <[email protected]>
1 parent 6f4426a commit a1fc5a4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

nix/overlay.nix

+6-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ in {
4343
go = super.pkgs.go_1_17;
4444
buildGoPackage = super.pkgs.buildGo117Package;
4545
buildGoModule = super.pkgs.buildGo117Module;
46-
gomobile = super.gomobile.override {
46+
gomobile = (super.gomobile.overrideAttrs (old: {
47+
patches = self.pkgs.fetchurl { # https://github.com/golang/mobile/pull/84
48+
url = "https://github.com/golang/mobile/commit/f20e966e05b8f7e06bed500fa0da81cf6ebca307.patch";
49+
sha256 = "sha256-TZ/Yhe8gMRQUZFAs9G5/cf2b9QGtTHRSObBFD5Pbh7Y=";
50+
};
51+
})).override {
4752
# FIXME: No Android SDK packages for aarch64-darwin.
4853
withAndroidPkgs = stdenv.system != "aarch64-darwin";
4954
androidPkgs = self.androidEnvCustom.compose;

0 commit comments

Comments
 (0)