From f358aaff70dda05563a76008df80ed8256d8f345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Wed, 10 Jan 2024 19:57:39 +0100 Subject: [PATCH] upgrade gomobile to version from 2023-11-27 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- shell.nix | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/shell.nix b/shell.nix index bcc4c33ffe0..a3f350138dc 100644 --- a/shell.nix +++ b/shell.nix @@ -10,7 +10,7 @@ android_sdk.accept_license = true; }; overlays = [ - (self: super: { + (final: prev: { androidPkgs = pkgs.androidenv.composeAndroidPackages { toolsVersion = "26.1.1"; platformToolsVersion = "33.0.3"; @@ -24,6 +24,19 @@ "extras;google;m2repository" ]; }; + # https://github.com/golang/go/issues/58426 + gomobile = prev.gomobile.override { + buildGoModule = args: pkgs.buildGo121Module ( args // rec { + version = "unstable-2023-11-27"; + src = prev.fetchgit { + rev = "76ac6878050a2eef81867f2c6c21108e59919e8f"; + name = "gomobile"; + url = "https://go.googlesource.com/mobile"; + sha256 = "sha256-mq7gKccvI7VCBEiQTueWxMPOCgg/MGE8y2+BlwWx5pw="; + }; + vendorHash = "sha256-8OBLVd4zs89hoJXzC8BPRgrYjjR7DiA39+7tTaSYUFI="; + }); + }; }) ]; } @@ -40,18 +53,10 @@ let allowHigher = true; }; /* Gomobile also needs the Xcode wrapper. */ - gomobileMod = (pkgs.gomobile.overrideAttrs (old: { - patches = self.fetchurl { - url = "https://github.com/golang/mobile/commit/76ac6878050a2eef81867f2c6c21108e59919e8f"; - sha256 = "sha256-TZ/Yhe8gMRQUZFAs9G5/cf2b9QGtTHRSObBFD5Pbh7Y="; - }; - })).override { - /* Gomobile also needs the Xcode wrapper. */ + gomobileMod = pkgs.gomobile.override { inherit xcodeWrapper; withAndroidPkgs = !isMacM1; }; - - in pkgs.mkShell { name = "status-go-shell";