guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#55210] [PATCH 1/3] gnu: Add go-1.18.


From: Pier-Hugues Pellerin
Subject: [bug#55210] [PATCH 1/3] gnu: Add go-1.18.
Date: Sun, 1 May 2022 14:57:47 -0400

* gnu/packages/golang.scm (go-1.18): Update to Go 1.18.1
---
 gnu/packages/golang.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 820e6b54ab..829db82ea2 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -839,6 +839,31 @@ (define-public go-1.17
        (package-native-inputs go-1.16)))))
 
 (define-public go go-1.17)
+(define-public go-1.18
+  (package
+    (inherit go-1.17)
+    (name "go")
+    (version "1.18.1")
+    (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
+                "1ywx90w1jvmp6nif00kjn4ksn09a0wvfp2kww3gxk02s1wi23zw5"))))
+    (inputs (if (not (target-arm?))
+                (alist-delete "gcc:lib"
+                              (package-inputs go-1.17))
+                (package-inputs go-1.17)))
+    (native-inputs (if (not (member (%current-system)
+                                    (package-supported-systems go-1.4)))
+                       (alist-replace "go"
+                                      (list go-1.17)
+                                      (package-native-inputs go-1.17))
+                       (package-native-inputs go-1.17)))
+    (home-page "https://go.dev";)))
 
 (define-public (make-go-std go)
   "Return a package which builds the standard library for Go compiler GO."
-- 
2.35.1






reply via email to

[Prev in Thread] Current Thread [Next in Thread]