@@ -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."