[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/06: gnu: Add go-1.22 and its standard library.
From: |
guix-commits |
Subject: |
01/06: gnu: Add go-1.22 and its standard library. |
Date: |
Fri, 23 Feb 2024 12:12:48 -0500 (EST) |
sharlatan pushed a commit to branch go-team
in repository guix.
commit 0cebc510530d0b8ad6af7faafc3869dae39d9311
Author: Brennan Vincent <brennan@umanwizard.com>
AuthorDate: Sat Feb 17 13:35:16 2024 -0500
gnu: Add go-1.22 and its standard library.
* gnu/packages/golang.scm (go-1.22): New variable.
* gnu/packages/golang.scm (go-std-1.22): New variable.
Change-Id: I18d92874d4131843e7c6cf0e8d89f2946f7b972d
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index e8abaffb56..bb87f49f5f 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -45,6 +45,7 @@
;;; Copyright © 2023 Clément Lassieur <clement@lassieur.org>
;;; Copyright © 2024 Troy Figiel <troy@troyfigiel.com>
;;; Copyright © 2024 Greg Hogan <code@greghogan.com>
+;;; Copyright © 2024 Brennan Vincent <brennan@umanwizard.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1113,6 +1114,38 @@ in the style of communicating sequential processes
(@dfn{CSP}).")
("api" "share/go/api" ,tests)
("test" "share/go/test" ,tests))))))))))))
+(define-public go-1.22
+ (package
+ (inherit go-1.21)
+ (name "go")
+ (version "1.22.0")
+ (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 "00j6sn2zysk5pdzxw1wfdi31wggzw1h1026ah3x3mi85dwsijhjs"))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments go-1.21)
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (replace 'unpatch-perl-shebangs
+ (lambda _
+ ;; Avoid inclusion of perl in closure by rewriting references
+ ;; to perl input in sourcecode generators and test scripts
+ (substitute* (find-files "src" "\\.pl$")
+ (("^#!.*")
+ "#!/usr/bin/env perl\n"))))))))
+ (native-inputs
+ ;; Go 1.22 and later requires Go 1.20 (min. 1.20.6, which we don't have)
+ ;; as the bootstrap toolchain.
+ (alist-replace "go"
+ (list go-1.21)
+ (package-native-inputs go-1.21)))))
+
(define-public go go-1.17)
(define make-go-std
@@ -1156,6 +1189,7 @@ in the style of communicating sequential processes
(@dfn{CSP}).")
(define-public go-std-1.19 (make-go-std go-1.19))
(define-public go-std-1.20 (make-go-std go-1.20))
(define-public go-std-1.21 (make-go-std go-1.21))
+(define-public go-std-1.22 (make-go-std go-1.22))
(define-public go-0xacab-org-leap-shapeshifter
(let ((commit "0aa6226582efb8e563540ec1d3c5cfcd19200474")
- branch go-team created (now bfa0e9c154), guix-commits, 2024/02/23
- 02/06: gnu: Remove go-1.14., guix-commits, 2024/02/23
- 05/06: gnu: Remove go-etcd-io-bbolt., guix-commits, 2024/02/23
- 04/06: gnu: go-go-etcd-io-bbolt: Move to (gnu packages golang-xyz)., guix-commits, 2024/02/23
- 06/06: gnu: Remove go-golang-org-x-net-html., guix-commits, 2024/02/23
- 03/06: gnu: Add go-go-etcd-io-gofail., guix-commits, 2024/02/23
- 01/06: gnu: Add go-1.22 and its standard library.,
guix-commits <=