From 297041998b79e6bb0d85b75a2ce2b29cb345d5ab Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Thu, 15 May 2025 10:54:18 +0800 Subject: [PATCH] rosenthal: Add go-1.24. * modules/rosenthal/packages/golang.scm: New file. --- modules/rosenthal/packages/golang.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 modules/rosenthal/packages/golang.scm diff --git a/modules/rosenthal/packages/golang.scm b/modules/rosenthal/packages/golang.scm new file mode 100644 index 0000000..851a354 --- /dev/null +++ b/modules/rosenthal/packages/golang.scm @@ -0,0 +1,27 @@ +;; SPDX-FileCopyrightText: 2025 Hilton Chain +;; +;; SPDX-License-Identifier: GPL-3.0-or-later + +(define-module (rosenthal packages golang) + #:use-module (guix packages) + #:use-module ((guix build utils) #:select (alist-replace)) + #:use-module (guix git-download) + #:use-module (gnu packages golang)) + +(define-public go-1.24 + (package + (inherit go-1.23) + (name "go") + (version "1.24.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/golang/go") + (commit (string-append "go" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "199yajw3amvspl9k2a75v4jblwr965laqngxbnsi5l3ragp5c1ck")))) + (native-inputs + ;; Go 1.24 and later requires Go 1.22+ as the bootstrap toolchain. + (alist-replace "go" (list go-1.22) (package-native-inputs go-1.23)))))