From 2cb6ef2db78da01fec2b3c6b77ba943eef8a6b55 Mon Sep 17 00:00:00 2001 From: Patrick Norton Date: Mon, 24 Nov 2025 19:43:34 -0500 Subject: [PATCH] gnu: Add go-golang-org-x-mobile. * gnu/packages/golang-build.scm (go-golang-org-x-mobile): New variable. Change-Id: I83964565fdcd1d2d5e908d1ac851d654369d0b06 Modified-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-build.scm | 50 +++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 82454a1486c75f5503e9f3f7bc85f103ef420de1..ff0c0544d2f926aea905c5a12b9b253b1092477d 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -20,6 +20,7 @@ ;;; Copyright © 2024 Hilton Chain ;;; Copyright © 2024 Sharlatan Hellseher ;;; Copyright © 2024 Troy Figiel +;;; Copyright © 2025 Patrick Norton ;;; ;;; This file is part of GNU Guix. ;;; @@ -44,7 +45,9 @@ #:use-module (guix packages) #:use-module (guix utils) #:use-module (gnu packages) + #:use-module (gnu packages audio) #:use-module (gnu packages gcc) + #:use-module (gnu packages gl) #:use-module (gnu packages golang)) ;;; Commentary: @@ -943,6 +946,53 @@ compile does not support generics.") (native-inputs '()) (propagated-inputs '())))) +(define-public go-golang-org-x-mobile + (package + (name "go-golang-org-x-mobile") + (version "0.0.0-20251113184115-a159579294ab") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://go.googlesource.com/mobile") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1c6h7w1xmv47g61j24y9xkagl2f0833r9bhjzrp0aarhc6fz99b2")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:test-flags + #~(list "-skip" (string-join + ;; Permission denied to read or write go.mod file. + (list "TestDocs/Modules" + "TestGobind/Modules" + ;; build_test.go:100: cannot set -o when building + ;; non-main package + "TestAndroidBuild") + "|")) + #:import-path "golang.org/x/mobile" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples + (lambda* (#:key import-path #:allow-other-keys) + (delete-file-recursively + (string-append "src/" import-path "/example"))))))) + (inputs (list openal mesa)) + (propagated-inputs + (list go-golang-org-x-exp + go-golang-org-x-image + go-golang-org-x-mod + go-golang-org-x-sync + go-golang-org-x-tools + go-golang-org-x-tools-go-packages-packagestest)) + (home-page "https://golang.org/x/mobile") + (synopsis "Mobile devices support for Golang") + (description + "This package implements a functionality for using Go on mobile platforms.") + (license license:bsd-3))) + (define-public go-golang-org-x-mod (package (name "go-golang-org-x-mod")