diff options
author | Rodion Goritskov <rodion.goritskov@gmail.com> | 2024-04-09 19:18:09 +0400 |
---|---|---|
committer | Rodion Goritskov <rodion.goritskov@gmail.com> | 2024-04-09 19:18:09 +0400 |
commit | b89ddd90d309f05daafa254e9c0636e4b76d7d5b (patch) | |
tree | 230ecf749ecfbf0ec0c950e21e034fe72d78af2d /rodion/packages | |
parent | 53fbd7fdadbf168f696f3f2e25c7883369ee971b (diff) |
gnu: Add go-1.22.
* rodion/packages/go.scm (go-1.22): New variable.
Diffstat (limited to 'rodion/packages')
-rw-r--r-- | rodion/packages/go.scm | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/rodion/packages/go.scm b/rodion/packages/go.scm new file mode 100644 index 0000000..f57edff --- /dev/null +++ b/rodion/packages/go.scm @@ -0,0 +1,71 @@ +(define-module (rodion packages go) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix utils) + #:use-module (guix gexp) + #:use-module (guix memoization) + #:use-module ((guix build utils) #:select (alist-replace)) + #:use-module (guix download) + #:use-module (guix git-download) + #:use-module (guix packages) + #:use-module (guix gexp) + #:use-module (guix build-system gnu) + #:use-module (guix build-system go) + #:use-module (gnu packages) + #:use-module (gnu packages admin) + #:use-module (gnu packages base) + #:use-module ((gnu packages bootstrap) #:select (glibc-dynamic-linker)) + #:use-module (gnu packages check) + #:use-module (gnu packages fonts) + #:use-module (gnu packages gcc) + #:use-module (gnu packages glib) + #:use-module (gnu packages gnupg) + #:use-module (gnu packages golang-build) + #:use-module (gnu packages golang-check) + #:use-module (gnu packages golang-compression) + #:use-module (gnu packages golang-crypto) + #:use-module (gnu packages golang-web) + #:use-module (gnu packages golang-xyz) + #:use-module (gnu packages lua) + #:use-module (gnu packages mail) + #:use-module (gnu packages mp3) + #:use-module (gnu packages password-utils) + #:use-module (gnu packages pcre) + #:use-module (gnu packages perl) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages pulseaudio) + #:use-module (gnu packages ruby) + #:use-module (gnu packages syncthing) + #:use-module (gnu packages terminals) + #:use-module (gnu packages textutils) + #:use-module (gnu packages tls) + #:use-module (gnu packages web) + #:use-module (gnu packages golang) + #:use-module (ice-9 match) + #:use-module (srfi srfi-1)) + +(define-public go-1.22 + (package + (inherit go-1.21) + (name "go") + (version "1.22.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 "01zz8n5c32vympr2l9jdg5pzn63d3z28p0d4q6wmd0pr2jd3l3wn")))) + (arguments + (substitute-keyword-arguments (package-arguments go-1.21) + ((#:phases phases) + #~(modify-phases #$phases + (delete 'unpatch-perl-shebangs))))) + (native-inputs + ;; Go 1.22 requires Go 1.20 or later as the bootstrap toolchain. + (alist-replace "go" + (list go-1.21) + (package-native-inputs go-1.21))))) + +(define-public go-std-1.22 (make-go-std go-1.22)) |