rosenthal: Add go-1.24.

* modules/rosenthal/packages/golang.scm: New file.
This commit is contained in:
Hilton Chain 2025-05-15 10:54:18 +08:00
parent 2a36e8b621
commit 297041998b
No known key found for this signature in database
GPG Key ID: ACC66D09CA528292

View File

@ -0,0 +1,27 @@
;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
;;
;; 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)))))