···
xcodeWrapper ? xcodeenv.composeXcodeWrapper xcodeWrapperArgs,
13
-
androidPkgs ? androidenv.composeAndroidPackages {
15
-
ndkVersion = "22.1.7171670";
14
+
androidenv.composeAndroidPackages {
21
-
version = "unstable-2022-05-18";
23
-
vendorHash = "sha256-AmOy3X+d2OD7ZLbFuy+SptdlgWbZJaXYEgO79M64ufE=";
21
+
version = "0-unstable-2024-12-13";
26
-
rev = "8578da9835fd365e78a6e63048c103b27a53a82c";
url = "https://go.googlesource.com/mobile";
29
-
sha256 = "sha256-AOR/p+DW83f2+BOxm2rFXBCrotcIyunK3UzQ/dnauWY=";
26
+
rev = "a87c1cf6cf463f0d4476cfe0fcf67c2953d76e7c";
27
+
hash = "sha256-7j4rdmCZMC8tn4vAsC9x/mMNkom/+Tl7uAY+5gkSvfY=";
30
+
vendorHash = "sha256-6ycxEDEE0/i6Lxo0gb8wq3U2U7Q49AJj+PdzSl57wwI=";
···
ln -s $src $out/src/golang.org/x/mobile
61
-
for bin in $(ls $out/bin); do
62
-
wrapProgram $out/bin/$bin \
63
-
--suffix GOPATH : $out \
65
-
+ lib.optionalString withAndroidPkgs ''
66
-
--prefix PATH : "${androidPkgs.androidsdk}/bin" \
67
-
--set-default ANDROID_HOME "${androidPkgs.androidsdk}/libexec/android-sdk" \
70
-
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ zlib ]}"
60
+
for prog in gomobile gobind; do
61
+
wrapProgram $out/bin/$prog \
62
+
--suffix GOPATH : $out \
63
+
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ zlib ]}" \
64
+
${lib.optionalString withAndroidPkgs ''
65
+
--prefix PATH : "${androidPkgs.androidsdk}/bin" \
66
+
--set-default ANDROID_HOME "${androidPkgs.androidsdk}/libexec/android-sdk"
description = "Tool for building and running mobile apps written in Go";
homepage = "https://pkg.go.dev/golang.org/x/mobile/cmd/gomobile";
77
-
license = licenses.bsd3;
78
-
maintainers = with maintainers; [ jakubgs ];
74
+
license = with lib.licenses; [ bsd3 ];
75
+
maintainers = with lib.maintainers; [ jakubgs ];