From b0d7e4923e0acb3099d4343dceeeb23c5204aeff Mon Sep 17 00:00:00 2001 From: Troy Figiel Date: Sat, 3 Feb 2024 16:31:47 +0100 Subject: gnu: go-github-com-docker-go-connections: Update to 0.5.0. * gnu/packages/golang.scm (go-github-com-docker-go-connections): Update to 0.5.0. Signed-off-by: Hilton Chain Change-Id: I742db180c55048e997df159377a212fb238455f8 --- gnu/packages/golang.scm | 45 +++++++++++++++++++++------------------------ 1 file changed, 21 insertions(+), 24 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 014ca01602..16074ae0fa 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4776,31 +4776,28 @@ (define-public go-github-com-docker-distribution (license license:asl2.0)))) (define-public go-github-com-docker-go-connections - (let ((commit "3ede32e2033de7505e6500d6c868c2b9ed9f169d") - (revision "0")) - (package - (name "go-github-com-docker-go-connections") - (version (git-version "0.0.0" revision commit)) - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/docker/go-connections") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0v1pkr8apwmhyzbjfriwdrs1ihlk6pw7izm57r24mf9jdmg3fyb0")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/docker/go-connections")) - (home-page "https://github.com/docker/go-connections") - (synopsis "Networking library for Go") - (description - "This package provides a library to work with network connections in -the Go language. In particular it provides tools to deal with network address + (package + (name "go-github-com-docker-go-connections") + (version "0.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/docker/go-connections") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0svfa9g4xvbn87l5kiww1jkijmci9g5821wjp81xz1rfp13cqrk8")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/docker/go-connections")) + (home-page "https://github.com/docker/go-connections") + (synopsis "Networking library for Go") + (description + "This package provides a library to work with network connections in the +Go language. In particular it provides tools to deal with network address translation (NAT), proxies, sockets, and transport layer security (TLS).") - (license license:asl2.0)))) + (license license:asl2.0))) (define-public go-github-com-docker-go-units (package -- cgit v1.2.3 From 3ce5778adb128782351062d99dbfab8ec06c6467 Mon Sep 17 00:00:00 2001 From: Troy Figiel Date: Fri, 2 Feb 2024 20:17:23 +0100 Subject: gnu: go-github-com-kr-text: Update to 0.2.0. * gnu/packages/golang.scm (go-github-com-kr-text): Update to 0.2.0. [propagated-inputs]: Add go-github-com-creack-pty. Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 16074ae0fa..57e81d44a7 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -43,6 +43,7 @@ ;;; Copyright © 2023 Timo Wilken ;;; Copyright © 2023, 2024 Artyom V. Poptsov ;;; Copyright © 2023 Clément Lassieur +;;; Copyright © 2024 Troy Figiel ;;; ;;; This file is part of GNU Guix. ;;; @@ -6334,7 +6335,7 @@ (define-public go-github-com-kylelemons-godebug (define-public go-github-com-kr-text (package (name "go-github-com-kr-text") - (version "0.1.0") + (version "0.2.0") (source (origin (method git-fetch) (uri (git-reference @@ -6343,10 +6344,11 @@ (define-public go-github-com-kr-text (file-name (git-file-name name version)) (sha256 (base32 - "1gm5bsl01apvc84bw06hasawyqm4q84vx1pm32wr9jnd7a8vjgj1")))) + "0hf58ypz6rxsw6nx3i856whir9lvy4sdx946wbw1nfaf2rdmr9vx")))) (build-system go-build-system) (arguments '(#:import-path "github.com/kr/text")) + (propagated-inputs (list go-github-com-creack-pty)) (synopsis "Text formatting in Go") (description "This package provides a text formatting functions in Go.") (home-page "https://github.com/kr/text") -- cgit v1.2.3 From f33473e7b215d2b6d00532565dc49cbf183cb2de Mon Sep 17 00:00:00 2001 From: Troy Figiel Date: Fri, 2 Feb 2024 22:29:03 +0100 Subject: gnu: misspell: Add missing input. * gnu/packages/golang.scm (misspell) [propagated-inputs]: Add go-github-com-gobwas-glob. Signed-off-by: Sharlatan Hellseher Change-Id: I1c080a8fbb6f0a0294e28e4697438ab31ebca3cc --- gnu/packages/golang.scm | 1 + 1 file changed, 1 insertion(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 57e81d44a7..200090b416 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5252,6 +5252,7 @@ (define-public misspell 'build) `(,@arguments #:import-path "github.com/client9/misspell/cmd/misspell"))))))) + (propagated-inputs (list go-github-com-gobwas-glob)) (home-page "https://github.com/client9/misspell") (synopsis "Correct commonly misspelled English words in source files") (description -- cgit v1.2.3 From c1a4de630cb4abb1c0c19ad8f485973a61e2dd3b Mon Sep 17 00:00:00 2001 From: Troy Figiel Date: Fri, 2 Feb 2024 23:52:47 +0100 Subject: gnu: go-github-com-cheekybits-genny: Add missing input. * gnu/packages/golang.scm (go-github-com-cheekybits-genny) [native-inputs]: Add go-github-com-stretchr-testify. Signed-off-by: Sharlatan Hellseher Change-Id: Ib3b9a0aefa8218d26527e4401952ad72d6cc625d --- gnu/packages/golang.scm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 200090b416..64ad09f4f6 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -6764,6 +6764,8 @@ (define-public go-github-com-cheekybits-genny '(#:import-path "github.com/cheekybits/genny")) (propagated-inputs (list go-golang-org-x-tools)) + (native-inputs + (list go-github-com-stretchr-testify)) (synopsis "Generics for Go") (description "This package provides @code{genny}, a Go language implementation of generics.") -- cgit v1.2.3 From 34fe725fb3ecff56ac7c20307005f053bfc3f1f1 Mon Sep 17 00:00:00 2001 From: Troy Figiel Date: Sun, 4 Feb 2024 00:52:38 +0100 Subject: gnu: go-github-com-go-git-go-billy: Add missing input. * gnu/packages/golang.scm (go-github-com-go-git-go-billy) [propagated-inputs]: Add go-golang-org-x-sys. Signed-off-by: Sharlatan Hellseher Change-Id: Ia1fee47a497dcd1221ec6a8b2b6bbd549662e470 --- gnu/packages/golang.scm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 64ad09f4f6..163691a1e6 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -8713,6 +8713,8 @@ (define-public go-github-com-go-git-go-billy (build-system go-build-system) (arguments `(#:import-path "github.com/go-git/go-billy/v5")) + (propagated-inputs + (list go-golang-org-x-sys)) (native-inputs (list go-gopkg-in-check-v1)) (home-page "https://github.com/go-git/go-billy/") -- cgit v1.2.3 From ae60a953d61d6bd28adfa2f73fdbd37202039091 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 12 Feb 2024 21:32:21 +0000 Subject: gnu: go-github-com-prometheus-client-model: Move to golang-xyz. * gnu/packages/syncthing.scm (go-github-com-prometheus-client-model): Move from here * gnu/packages/golang-xyz.scm: ... to here. * gnu/packages/golang.scm: Add (gnu packages golang-xyz) module. * gnu/packages/ipfs.scm: As above. * gnu/packages/networking.scm: As above. Change-Id: Ibf79be7fd49acc8fc88bf2411a4d7d89b44713d0 --- gnu/packages/golang-xyz.scm | 31 +++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 1 + gnu/packages/ipfs.scm | 1 + gnu/packages/networking.scm | 1 + gnu/packages/syncthing.scm | 30 ------------------------------ 5 files changed, 34 insertions(+), 30 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 186c0e87a3..bdf29d64b4 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1,4 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2018, 2019 Leo Famulari ;;; Copyright © 2022 Dominic Martinez ;;; Copyright © 2023 Benjamin ;;; Copyright © 2023 Thomas Ieong @@ -322,6 +323,36 @@ (define-public go-github-com-nbrownus-go-metrics-prometheus updates the registry.") (license license:asl2.0))) +(define-public go-github-com-prometheus-client-model + (let ((commit "14fe0d1b01d4d5fc031dd4bec1823bd3ebbe8016") + (revision "2")) + (package + (name "go-github-com-prometheus-client-model") + (version (git-version "0.0.2" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/prometheus/client_model") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0zdmk6rbbx39cvfz0r59v2jg5sg9yd02b4pds5n5llgvivi99550")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/prometheus/client_model" + #:tests? #f + #:phases + (modify-phases %standard-phases + ;; Source-only package + (delete 'build)))) + (propagated-inputs + (list go-github-com-golang-protobuf-proto)) + (synopsis "Data model artifacts for Prometheus") + (description "This package provides data model artifacts for Prometheus.") + (home-page "https://github.com/prometheus/client_model") + (license license:asl2.0)))) + (define-public go-github-com-skip2-go-qrcode (package (name "go-github-com-skip2-go-qrcode") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 163691a1e6..d3e4249c4d 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -84,6 +84,7 @@ (define-module (gnu packages golang) #:use-module (gnu packages golang-check) #: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) diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm index a1b9333066..7c87caa39c 100644 --- a/gnu/packages/ipfs.scm +++ b/gnu/packages/ipfs.scm @@ -32,6 +32,7 @@ (define-module (gnu packages ipfs) #:use-module (gnu packages golang-check) #:use-module (gnu packages golang-crypto) #:use-module (gnu packages golang-web) + #:use-module (gnu packages golang-xyz) #:use-module (gnu packages python) #:use-module (gnu packages shells) #:use-module (gnu packages syncthing)) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index 8d358961a1..462b10fc6a 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -126,6 +126,7 @@ (define-module (gnu packages networking) #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) #:use-module (gnu packages golang-web) + #:use-module (gnu packages golang-xyz) #:use-module (gnu packages graphviz) #:use-module (gnu packages gstreamer) #:use-module (gnu packages gtk) diff --git a/gnu/packages/syncthing.scm b/gnu/packages/syncthing.scm index 4c3aa8f30b..c5f590fb59 100644 --- a/gnu/packages/syncthing.scm +++ b/gnu/packages/syncthing.scm @@ -806,36 +806,6 @@ (define-public go-github-com-beorn7-perks-quantile (home-page "https://github.com/beorn7/perks") (license expat)))) -(define-public go-github-com-prometheus-client-model - (let ((commit "14fe0d1b01d4d5fc031dd4bec1823bd3ebbe8016") - (revision "2")) - (package - (name "go-github-com-prometheus-client-model") - (version (git-version "0.0.2" revision commit)) - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/prometheus/client_model") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0zdmk6rbbx39cvfz0r59v2jg5sg9yd02b4pds5n5llgvivi99550")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/prometheus/client_model" - #:tests? #f - #:phases - (modify-phases %standard-phases - ;; Source-only package - (delete 'build)))) - (propagated-inputs - (list go-github-com-golang-protobuf-proto)) - (synopsis "Data model artifacts for Prometheus") - (description "This package provides data model artifacts for Prometheus.") - (home-page "https://github.com/prometheus/client_model") - (license asl2.0)))) - (define-public go-github-com-matttproud-golang-protobuf-extensions-pbutil (let ((commit "c12348ce28de40eed0136aa2b644d0ee0650e56c") (revision "0")) -- cgit v1.2.3 From 062a4a49dbfaacdbc3bc9f9abc08e87f35b808f3 Mon Sep 17 00:00:00 2001 From: Alexey Abramov Date: Sun, 11 Feb 2024 19:28:25 +0100 Subject: gnu: Add go-dario-cat-mergo. This is a new version of go-github-com-imdario-mergo. It was renamed and now used as dario.cat/mergo in tests and other places. * gnu/packages/golang.scm (go-dario-cat-mergo): New variable. Signed-off-by: Sharlatan Hellseher Change-Id: I10cf6c962441535493889820543d29a9a9b20e98 --- gnu/packages/golang.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index d3e4249c4d..4e46c70d81 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -8080,6 +8080,27 @@ (define-public go-github-com-imdario-mergo maps (because they are not addressable using Go reflection).") (license license:bsd-3))) +(define-public go-dario-cat-mergo + (package + (inherit go-github-com-imdario-mergo) + (name "go-dario-cat-mergo") + (version "1.0.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/imdario/mergo") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "037k2bd97vnbyhn2sczxk0j6ijmv06n1282f76i3ky73s3qmqnlf")))) + (build-system go-build-system) + (arguments + `(#:unpack-path "dario.cat/mergo" + #:import-path "dario.cat/mergo")) + (native-inputs + (list go-gopkg-in-yaml-v3)))) + (define-public go-github-com-masterminds-sprig (package (name "go-github-com-masterminds-sprig") -- cgit v1.2.3 From 8b3daeca5545b97556b7f7f196bda6ca84e3dfa3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 5 Feb 2024 20:57:31 +0000 Subject: gnu: go-golang-org-x-net: Move to golang-build. * gnu/packages/golang.scm (go-golang-org-x-net, go-golang-org-x-net-0.17, go-golang-org-x-net-html): Move from here ... * gnu/packages/golang-build.scm: ... to here. * gnu/packages/configuration-management.scm: Add (gnu packages golang-build) module. * gnu/packages/education.scm: As above ... * gnu/packages/file-systems.scm: As above ... * gnu/packages/golang-check.scm: As above ... * gnu/packages/golang-crypto.scm: As above ... * gnu/packages/golang-web.scm: As above ... * gnu/packages/golang-xyz.scm: As above ... * gnu/packages/golang.scm: As above ... * gnu/packages/ipfs.scm: As above ... * gnu/packages/messaging.scm: As above ... * gnu/packages/networking.scm: As above ... * gnu/packages/uucp.scm: As above ... * gnu/packages/version-control.scm: As above ... Change-Id: If009e62555ada293f17cf0f42fde82c21ef4615e --- gnu/packages/configuration-management.scm | 1 + gnu/packages/education.scm | 1 + gnu/packages/file-systems.scm | 1 + gnu/packages/golang-build.scm | 64 +++++++++++++++++++++++++++++++ gnu/packages/golang-check.scm | 3 +- gnu/packages/golang-crypto.scm | 1 + gnu/packages/golang-web.scm | 1 + gnu/packages/golang-xyz.scm | 1 + gnu/packages/golang.scm | 60 +---------------------------- gnu/packages/ipfs.scm | 1 + gnu/packages/messaging.scm | 1 + gnu/packages/networking.scm | 1 + gnu/packages/uucp.scm | 1 + gnu/packages/version-control.scm | 1 + 14 files changed, 78 insertions(+), 60 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/configuration-management.scm b/gnu/packages/configuration-management.scm index 296f48dcd5..6632f429e2 100644 --- a/gnu/packages/configuration-management.scm +++ b/gnu/packages/configuration-management.scm @@ -21,6 +21,7 @@ (define-module (gnu packages configuration-management) #:use-module (guix build-system go) #:use-module (guix git-download) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-web) #:use-module (gnu packages version-control) #:use-module (gnu packages textutils) diff --git a/gnu/packages/education.scm b/gnu/packages/education.scm index 7b72ed0349..0f4a251bcc 100644 --- a/gnu/packages/education.scm +++ b/gnu/packages/education.scm @@ -47,6 +47,7 @@ (define-module (gnu packages education) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) #:use-module (gnu packages gtk) #:use-module (gnu packages gstreamer) diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm index 61db3086c8..af6d1ee871 100644 --- a/gnu/packages/file-systems.scm +++ b/gnu/packages/file-systems.scm @@ -72,6 +72,7 @@ (define-module (gnu packages file-systems) #:use-module (gnu packages gnome) #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) #:use-module (gnu packages golang-crypto) #:use-module (gnu packages guile) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 03fcdede80..2601dec27a 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -1,4 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2020 Leo Famulari +;;; Copyright © 2023 Artyom V. Poptsov +;;; Copyright © 2023 Felix Lechner ;;; ;;; This file is part of GNU Guix. ;;; @@ -37,6 +40,67 @@ (define-module (gnu packages golang-build) ;;; ;;; Code: +(define-public go-golang-org-x-net + (let ((commit "8e0e7d8d38f2b6d21d742845570dde2902d06a1d") + (revision "0")) + (package + (name "go-golang-org-x-net") + (version (git-version "0.5.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://go.googlesource.com/net") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1fidlcn3vcz42v2lc0rpmqh3bz08bcklj6jvnmz2vvgc481ci5hy")))) + (build-system go-build-system) + (arguments + (list + #:import-path "golang.org/x/net" + ;; Source-only package + #:tests? #f + #:phases + #~(modify-phases %standard-phases + ;; Source-only package + (delete 'build)))) + (home-page "https://go.googlesource.com/net") + (synopsis "Go supplemental networking libraries") + (description "This package provides supplemental Go networking libraries.") + (license license:bsd-3)))) + +;; XXX: Not in use by any other packages, consider to remove or merge with +;; go-golang-org-x-net. +(define-public go-golang-org-x-net-0.17 + (let ((commit "b225e7ca6dde1ef5a5ae5ce922861bda011cfabd") + (revision "0")) + (package + (inherit go-golang-org-x-net) + (name "go-golang-org-x-net") + (version (git-version "0.17.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://go.googlesource.com/net") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "17zhim2m0r8nyy18g2lsawxm4rawix2qbjyn80x9vc6jc8fv05m9"))))))) + +(define-public go-golang-org-x-net-html + (package + (inherit go-golang-org-x-net) + (name "go-golang-org-x-net-html") + (arguments + '(#:import-path "golang.org/x/net/html" + #:unpack-path "golang.org/x/net")) + (home-page "https://godoc.org/golang.org/x/net/html") + (synopsis "HTML5-compliant tokenizer and parser") + (description + "This package provides an HTML5-compliant tokenizer and parser."))) + ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 912444bc8e..2decd1f664 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -41,7 +41,8 @@ (define-module (gnu packages golang-check) #:use-module (guix gexp) #:use-module (guix git-download) #:use-module (gnu packages) - #:use-module (gnu packages golang)) + #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build)) ;;; Commentary: ;;; diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index bf2fc11e17..39e7412558 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -44,6 +44,7 @@ (define-module (gnu packages golang-crypto) #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check)) ;;; Commentary: diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 719cb5dfeb..d7fb7dd366 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -48,6 +48,7 @@ (define-module (gnu packages golang-web) #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) #:use-module (gnu packages golang-crypto) #:use-module (gnu packages golang-xyz) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 4eb52d427d..a75ae4c066 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -30,6 +30,7 @@ (define-module (gnu packages golang-xyz) #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) #:use-module (gnu packages golang-crypto)) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 4e46c70d81..cd15d7debc 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -81,6 +81,7 @@ (define-module (gnu packages golang) #: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-crypto) #:use-module (gnu packages golang-web) @@ -3651,65 +3652,6 @@ (define-public gopls editor.") (license license:bsd-3))) -(define-public go-golang-org-x-net - (let ((commit "8e0e7d8d38f2b6d21d742845570dde2902d06a1d") - (revision "0")) - (package - (name "go-golang-org-x-net") - (version (git-version "0.5.0" revision commit)) - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://go.googlesource.com/net") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1fidlcn3vcz42v2lc0rpmqh3bz08bcklj6jvnmz2vvgc481ci5hy")))) - (build-system go-build-system) - (arguments - (list - #:import-path "golang.org/x/net" - ;; Source-only package - #:tests? #f - #:phases - #~(modify-phases %standard-phases - ;; Source-only package - (delete 'build)))) - (synopsis "Go supplemental networking libraries") - (description "This package provides supplemental Go networking libraries.") - (home-page "https://go.googlesource.com/net") - (license license:bsd-3)))) - -(define-public go-golang-org-x-net-0.17 - (let ((commit "b225e7ca6dde1ef5a5ae5ce922861bda011cfabd") - (revision "0")) - (package - (inherit go-golang-org-x-net) - (name "go-golang-org-x-net") - (version (git-version "0.17.0" revision commit)) - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://go.googlesource.com/net") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "17zhim2m0r8nyy18g2lsawxm4rawix2qbjyn80x9vc6jc8fv05m9"))))))) - -(define-public go-golang-org-x-net-html - (package - (inherit go-golang-org-x-net) - (name "go-golang.org-x-net-html") - (arguments - '(#:import-path "golang.org/x/net/html" - #:unpack-path "golang.org/x/net")) - (synopsis "HTML5-compliant tokenizer and parser") - (description - "This package provides an HTML5-compliant tokenizer and parser.") - (home-page "https://godoc.org/golang.org/x/net/html"))) - (define-public go-golang-org-x-image (let ((commit "58c23975cae11f062d4b3b0c143fe248faac195d") (revision "1")) diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm index 7c87caa39c..c2d721dc0b 100644 --- a/gnu/packages/ipfs.scm +++ b/gnu/packages/ipfs.scm @@ -29,6 +29,7 @@ (define-module (gnu packages ipfs) #:use-module (guix download) #:use-module (guix build-system go) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) #:use-module (gnu packages golang-crypto) #:use-module (gnu packages golang-web) diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index bb33be4872..98c1c9bf67 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -86,6 +86,7 @@ (define-module (gnu packages messaging) #:use-module (gnu packages gnome) #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages gperf) #:use-module (gnu packages graphviz) #:use-module (gnu packages gstreamer) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index aecb4faeb8..9b472500bc 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -127,6 +127,7 @@ (define-module (gnu packages networking) #:use-module (gnu packages gnome) #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) #:use-module (gnu packages golang-crypto) #:use-module (gnu packages golang-web) diff --git a/gnu/packages/uucp.scm b/gnu/packages/uucp.scm index 37dc27625a..8f1759556e 100644 --- a/gnu/packages/uucp.scm +++ b/gnu/packages/uucp.scm @@ -19,6 +19,7 @@ (define-module (gnu packages uucp) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-crypto) #:use-module (gnu packages golang-web) #:use-module (gnu packages texinfo) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 8f9fae5ce2..51754245d3 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -106,6 +106,7 @@ (define-module (gnu packages version-control) #:use-module (gnu packages gnome) #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) #:use-module (gnu packages golang-crypto) #:use-module (gnu packages golang-web) -- cgit v1.2.3 From 20c1bd6e9e318bfbe4ad6fe926b42a159ca4f9ae Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 7 Feb 2024 18:37:04 +0000 Subject: gnu: go-github-com-golang-snappy: Mmove to golang-compression. * gnu/packages/syncthing.scm (go-github-com-golang-snappy): Move from here ... * gnu/packages/golang-compression.scm: ... to here. * gnu/packages/golang.scm: Add (gnu packages golang-compression) module. * gnu/packages/high-availability.scm: As above. * gnu/packages/ipfs.scm: As above. * gnu/packages/syncthing.scm: As above. Change-Id: I936c82c127e1aa25dde20693bee70e5a871249fe --- gnu/packages/golang-compression.scm | 26 ++++++++++++++++++++++++++ gnu/packages/golang.scm | 1 + gnu/packages/high-availability.scm | 4 ++-- gnu/packages/ipfs.scm | 1 + gnu/packages/syncthing.scm | 24 +----------------------- 5 files changed, 31 insertions(+), 25 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang-compression.scm b/gnu/packages/golang-compression.scm index 268cd16e30..670572ea90 100644 --- a/gnu/packages/golang-compression.scm +++ b/gnu/packages/golang-compression.scm @@ -1,4 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2017 Leo Famulari +;;; Copyright © 2021 Arun Isaac +;;; Copyright © 2021 Efraim Flashner ;;; ;;; This file is part of GNU Guix. ;;; @@ -30,6 +33,29 @@ (define-module (gnu packages golang-compression) ;;; ;;; Code: +(define-public go-github-com-golang-snappy + (package + (name "go-github-com-golang-snappy") + (version "0.0.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/golang/snappy") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "004cw699yz3pdpawhjhpa0y94c4w479nw1rf39zj6h6027kpwv2j")) + (patches (search-patches "go-github-com-golang-snappy-32bit-test.patch")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/golang/snappy")) + (home-page "https://github.com/golang/snappy") + (synopsis "Snappy compression format in the Go programming language") + (description "This package provides a Go implementation of the Snappy +compression format.") + (license license:bsd-3))) + ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index cd15d7debc..9cac55bb12 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -83,6 +83,7 @@ (define-module (gnu packages golang) #: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) diff --git a/gnu/packages/high-availability.scm b/gnu/packages/high-availability.scm index 9760084603..ad18a39738 100644 --- a/gnu/packages/high-availability.scm +++ b/gnu/packages/high-availability.scm @@ -36,6 +36,7 @@ (define-module (gnu packages high-availability) #:use-module (gnu packages gettext) #:use-module (gnu packages glib) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-compression) #:use-module (gnu packages golang-crypto) #:use-module (gnu packages golang-web) #:use-module (gnu packages golang-xyz) @@ -48,7 +49,6 @@ (define-module (gnu packages high-availability) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages rsync) - #:use-module (gnu packages syncthing) #:use-module (gnu packages tls) #:use-module (gnu packages valgrind) #:use-module (gnu packages version-control) @@ -284,7 +284,7 @@ (define-public nsq go-github-com-bmizerany-perks-quantile go-github-com-burntsushi-toml go-github-com-davecgh-go-spew - go-github-com-golang-snappy ; Move to (gnu packages golang) + go-github-com-golang-snappy go-github-com-julienschmidt-httprouter go-github-com-mreiferson-go-options go-github-com-mreiferson-go-svc diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm index c2d721dc0b..830e2ccd32 100644 --- a/gnu/packages/ipfs.scm +++ b/gnu/packages/ipfs.scm @@ -31,6 +31,7 @@ (define-module (gnu packages ipfs) #:use-module (gnu packages golang) #: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) diff --git a/gnu/packages/syncthing.scm b/gnu/packages/syncthing.scm index f6e7f362c5..d26e8bc028 100644 --- a/gnu/packages/syncthing.scm +++ b/gnu/packages/syncthing.scm @@ -38,6 +38,7 @@ (define-module (gnu packages syncthing) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-compression) #:use-module (gnu packages gtk) #:use-module (gnu packages linux) #:use-module (gnu packages python-crypto) @@ -398,29 +399,6 @@ (define-public go-github-com-golang-groupcache-lru (home-page "https://github.com/golang/groupcache") (license asl2.0)))) -(define-public go-github-com-golang-snappy - (package - (name "go-github-com-golang-snappy") - (version "0.0.4") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/golang/snappy") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "004cw699yz3pdpawhjhpa0y94c4w479nw1rf39zj6h6027kpwv2j")) - (patches (search-patches "go-github-com-golang-snappy-32bit-test.patch")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/golang/snappy")) - (synopsis "Snappy compression format in the Go programming language") - (description "This package provides a Go implementation of the Snappy -compression format.") - (home-page "https://github.com/golang/snappy") - (license bsd-3))) - (define-public go-github-com-jackpal-gateway (package (name "go-github-com-jackpal-gateway") -- cgit v1.2.3 From d8c8cfac7a4728f70662ffb1b8d2b2a2aef29f0e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 7 Feb 2024 18:51:20 +0000 Subject: gnu: go-github-com-mreiferson-go-options: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-mreiferson-go-options): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ia5cf19a48812b56b0b38ed80246a65c345454c79 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 24 insertions(+), 23 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index a75ae4c066..764a894a63 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3,6 +3,7 @@ ;;; Copyright © 2020 Efraim Flashner ;;; Copyright © 2022 Dominic Martinez ;;; Copyright © 2023 Benjamin +;;; Copyright © 2023 Sharlatan Hellseher ;;; Copyright © 2023 Thomas Ieong ;;; Copyright © 2024 Artyom V. Poptsov ;;; @@ -248,6 +249,29 @@ (define-public go-github-com-miekg-dns presenting a small interface.") (license license:bsd-3))) +(define-public go-github-com-mreiferson-go-options + (package + (name "go-github-com-mreiferson-go-options") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mreiferson/go-options") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1pxs9ybrh196qy14ijn4zn51h2z28lj31y6vxrz2xxhgvpmfmxyl")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/mreiferson/go-options")) + (home-page "https://github.com/mreiferson/go-options") + (synopsis "Go package to structure and resolve options") + (description + "The @code{options} Go package resolves configuration values set via +command line flags, config files, and default struct values.") + (license license:expat))) + (define-public go-github-com-nats-io-nats-go (package (name "go-github-com-nats-io-nats-go") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 9cac55bb12..fc13413420 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5516,29 +5516,6 @@ (define-public go-github-com-mr-tron-base58 encoding and 8 times faster decoding.") (license license:expat)))) -(define-public go-github-com-mreiferson-go-options - (package - (name "go-github-com-mreiferson-go-options") - (version "1.0.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/mreiferson/go-options") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1pxs9ybrh196qy14ijn4zn51h2z28lj31y6vxrz2xxhgvpmfmxyl")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/mreiferson/go-options")) - (home-page "https://github.com/mreiferson/go-options") - (synopsis "Go package to structure and resolve options") - (description - "The @code{options} Go package resolves configuration values set via -command line flags, config files, and default struct values.") - (license license:expat))) - (define-public go-github-com-mreiferson-go-svc ;; NSQ specific fork of github.com/judwhite/go-svc, as Guix go build system ;; does not support go.mod with `replace' statement. -- cgit v1.2.3 From a4aac98bbb6e6475ba7e35ad0eb82d861e483709 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 7 Feb 2024 20:53:56 +0000 Subject: gnu: go-golang-org-x-sys: Move to golang-build. * gnu/packages/golang.scm (go-golang-org-x-sys): Move from here ... * gnu/packages/golang-build.scm: ... to here. * gnu/packages/curl.scm: Add (gnu packages golang-build) module. * gnu/packages/databases.scm: As above. * gnu/packages/docker.scm: As above. * gnu/packages/golang-build.scm: As above. * gnu/packages/golang.scm: As above. * gnu/packages/irc.scm: As above. * gnu/packages/linux.scm: As above. * gnu/packages/password-utils.scm: As above. * gnu/packages/syncthing.scm: As above. * gnu/packages/textutils.scm: As above. * gnu/packages/vpn.scm: As above. * gnu/packages/weather.scm: As above. * gnu/packages/web.scm: As above. Change-Id: I161e89cacb9aa87b4fbb643ecd9ad32cfe49c9d7 --- gnu/packages/curl.scm | 1 + gnu/packages/databases.scm | 1 + gnu/packages/docker.scm | 1 + gnu/packages/golang-build.scm | 31 +++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 31 ------------------------------- gnu/packages/irc.scm | 1 + gnu/packages/linux.scm | 1 + gnu/packages/password-utils.scm | 1 + gnu/packages/syncthing.scm | 1 + gnu/packages/textutils.scm | 1 + gnu/packages/vpn.scm | 1 + gnu/packages/weather.scm | 3 ++- gnu/packages/web.scm | 1 + 13 files changed, 43 insertions(+), 32 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/curl.scm b/gnu/packages/curl.scm index 0fb83a7a12..02a602a66d 100644 --- a/gnu/packages/curl.scm +++ b/gnu/packages/curl.scm @@ -49,6 +49,7 @@ (define-module (gnu packages curl) #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages guile) #:use-module (gnu packages kerberos) #:use-module (gnu packages logging) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 903088ed4b..dc4a91f14d 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -107,6 +107,7 @@ (define-module (gnu packages databases) #:use-module (gnu packages gnome) #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) #:use-module (gnu packages golang-web) #:use-module (gnu packages gperf) diff --git a/gnu/packages/docker.scm b/gnu/packages/docker.scm index fbe8edeef0..0fe1f2c1c7 100644 --- a/gnu/packages/docker.scm +++ b/gnu/packages/docker.scm @@ -42,6 +42,7 @@ (define-module (gnu packages docker) #:use-module (gnu packages compression) #:use-module (gnu packages glib) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages linux) #:use-module (gnu packages networking) #:use-module (gnu packages pkg-config) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 2601dec27a..eeab951f1e 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -101,6 +101,37 @@ (define-public go-golang-org-x-net-html (description "This package provides an HTML5-compliant tokenizer and parser."))) +(define-public go-golang-org-x-sys + (let ((commit "ca59edaa5a761e1d0ea91d6c07b063f85ef24f78") + (revision "0")) + (package + (name "go-golang-org-x-sys") + (version (git-version "0.8.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://go.googlesource.com/sys") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1p81niiin8dwyrjl2xsc95136w3vdw4kmj0w3mlh0vh5v134s4xq")))) + (build-system go-build-system) + (arguments + (list + #:import-path "golang.org/x/sys" + ;; Source-only package + #:tests? #f + #:phases + #~(modify-phases %standard-phases + ;; Source-only package + (delete 'build)))) + (home-page "https://go.googlesource.com/sys") + (synopsis "Go support for low-level system interaction") + (description "This package provides supplemental libraries offering Go +support for low-level interaction with the operating system.") + (license license:bsd-3)))) + ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index fc13413420..4eb20e13f1 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3713,37 +3713,6 @@ (define-public go-golang-org-x-sync (home-page "https://go.googlesource.com/sync/") (license license:bsd-3)))) -(define-public go-golang-org-x-sys - (let ((commit "ca59edaa5a761e1d0ea91d6c07b063f85ef24f78") - (revision "0")) - (package - (name "go-golang-org-x-sys") - (version (git-version "0.8.0" revision commit)) - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://go.googlesource.com/sys") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1p81niiin8dwyrjl2xsc95136w3vdw4kmj0w3mlh0vh5v134s4xq")))) - (build-system go-build-system) - (arguments - (list - #:import-path "golang.org/x/sys" - ;; Source-only package - #:tests? #f - #:phases - #~(modify-phases %standard-phases - ;; Source-only package - (delete 'build)))) - (synopsis "Go support for low-level system interaction") - (description "This package provides supplemental libraries offering Go -support for low-level interaction with the operating system.") - (home-page "https://go.googlesource.com/sys") - (license license:bsd-3)))) - (define-public go-golang-org-x-text (package (name "go-golang-org-x-text") diff --git a/gnu/packages/irc.scm b/gnu/packages/irc.scm index 3200ccc135..c211fa6595 100644 --- a/gnu/packages/irc.scm +++ b/gnu/packages/irc.scm @@ -67,6 +67,7 @@ (define-module (gnu packages irc) #:use-module (gnu packages gnome) #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) #:use-module (gnu packages gtk) #:use-module (gnu packages guile) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index b8b119e474..d798c44a8f 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -134,6 +134,7 @@ (define-module (gnu packages linux) #:use-module (gnu packages gnome) #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages gperf) #:use-module (gnu packages graphviz) #:use-module (gnu packages gstreamer) diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index 1547acf1be..b79fdfc6a0 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -91,6 +91,7 @@ (define-module (gnu packages password-utils) #:use-module (gnu packages gnome) #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-crypto) #:use-module (gnu packages gtk) #:use-module (gnu packages guile) diff --git a/gnu/packages/syncthing.scm b/gnu/packages/syncthing.scm index d26e8bc028..d09b03bcdb 100644 --- a/gnu/packages/syncthing.scm +++ b/gnu/packages/syncthing.scm @@ -38,6 +38,7 @@ (define-module (gnu packages syncthing) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-compression) #:use-module (gnu packages gtk) #:use-module (gnu packages linux) diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm index be5cb15cb8..25de916fcb 100644 --- a/gnu/packages/textutils.scm +++ b/gnu/packages/textutils.scm @@ -67,6 +67,7 @@ (define-module (gnu packages textutils) #:use-module (gnu packages gcc) #:use-module (gnu packages gettext) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) #:use-module (gnu packages golang-crypto) #:use-module (gnu packages java) diff --git a/gnu/packages/vpn.scm b/gnu/packages/vpn.scm index 0070eaab6f..7823ef19eb 100644 --- a/gnu/packages/vpn.scm +++ b/gnu/packages/vpn.scm @@ -71,6 +71,7 @@ (define-module (gnu packages vpn) #:use-module (gnu packages glib) #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages guile) #:use-module (gnu packages libevent) #:use-module (gnu packages linux) diff --git a/gnu/packages/weather.scm b/gnu/packages/weather.scm index 6ba656017f..5a58b97a30 100644 --- a/gnu/packages/weather.scm +++ b/gnu/packages/weather.scm @@ -22,7 +22,8 @@ (define-module (gnu packages weather) #:use-module (guix git-download) #:use-module (guix packages) #:use-module (gnu packages) - #:use-module (gnu packages golang)) + #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build)) (define-public wego (package diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index a1039b9e0c..0c67e7d6e4 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -143,6 +143,7 @@ (define-module (gnu packages web) #:use-module (gnu packages gnunet) #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-web) #:use-module (gnu packages gperf) #:use-module (gnu packages graphviz) -- cgit v1.2.3 From b41a40564929f40ed3541c8ce740362b3d13de70 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 7 Feb 2024 20:59:13 +0000 Subject: gnu: go-github-com-mreiferson-go-svc: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-mreiferson-go-svc): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I21f1d5f651fb09a3716cbcdb48aaf7f8dd37384d --- gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++ gnu/packages/golang.scm | 28 ---------------------------- 2 files changed, 28 insertions(+), 28 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 764a894a63..27b9043929 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -272,6 +272,34 @@ (define-public go-github-com-mreiferson-go-options command line flags, config files, and default struct values.") (license license:expat))) +(define-public go-github-com-mreiferson-go-svc + ;; NSQ specific fork of github.com/judwhite/go-svc, as Guix go build system + ;; does not support go.mod with `replace' statement. + (let ((commit "7a96e00010f68d9436e3de53a70c53f209a0c244") + (revision "0")) + (package + (name "go-github-com-mreiferson-go-svc") + (version (git-version "1.2.1" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mreiferson/go-svc") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1acgb0n3svhnraqj1fz5qc5n3b4vc5ffwyk9vfi6gcfkibm0hgmd")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/judwhite/go-svc")) + (propagated-inputs (list go-golang-org-x-sys)) + (home-page "https://github.com/mreiferson/go-svc") + (synopsis "Go Windows Service wrapper for GNU/Linux") + (description + "Go Windows Service wrapper compatible with GNU/Linux. Windows tests +@url{https://github.com/judwhite/go-svc/raw/master/svc/svc_windows_test.go,here}.") + (license license:expat)))) + (define-public go-github-com-nats-io-nats-go (package (name "go-github-com-nats-io-nats-go") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 4eb20e13f1..24c845c7b8 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5485,34 +5485,6 @@ (define-public go-github-com-mr-tron-base58 encoding and 8 times faster decoding.") (license license:expat)))) -(define-public go-github-com-mreiferson-go-svc - ;; NSQ specific fork of github.com/judwhite/go-svc, as Guix go build system - ;; does not support go.mod with `replace' statement. - (let ((commit "7a96e00010f68d9436e3de53a70c53f209a0c244") - (revision "0")) - (package - (name "go-github-com-mreiferson-go-svc") - (version (git-version "1.2.1" revision commit)) - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/mreiferson/go-svc") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1acgb0n3svhnraqj1fz5qc5n3b4vc5ffwyk9vfi6gcfkibm0hgmd")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/judwhite/go-svc")) - (propagated-inputs (list go-golang-org-x-sys)) - (home-page "https://github.com/mreiferson/go-svc") - (synopsis "Go Windows Service wrapper for GNU/Linux") - (description - "Go Windows Service wrapper compatible with GNU/Linux. Windows tests -@url{https://github.com/judwhite/go-svc/raw/master/svc/svc_windows_test.go,here}.") - (license license:expat)))) - (define-public go-github-com-spaolacci-murmur3 (package (name "go-github-com-spaolacci-murmur3") -- cgit v1.2.3 From 35445a7c1a9a788f902594dd7ba0cd3547c7c7e6 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 7 Feb 2024 21:06:06 +0000 Subject: gnu: go-github-com-nsqio-go-nsq: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-nsqio-go-nsq): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ie718c9943dd527281b30c78ab4e23adc764289c1 --- gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++++++++++ gnu/packages/golang.scm | 26 -------------------------- 2 files changed, 27 insertions(+), 26 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 27b9043929..e6decd2906 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -33,6 +33,7 @@ (define-module (gnu packages golang-xyz) #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) + #:use-module (gnu packages golang-compression) #:use-module (gnu packages golang-crypto)) ;;; Commentary: @@ -377,6 +378,32 @@ (define-public go-github-com-nbrownus-go-metrics-prometheus updates the registry.") (license license:asl2.0))) +(define-public go-github-com-nsqio-go-nsq + (package + (name "go-github-com-nsqio-go-nsq") + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nsqio/go-nsq") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1h9z3z225sdgg7fl3l7x11xn5ch6lm5flgmcj046cdp453qj2qhf")))) + (build-system go-build-system) + (arguments + (list #:tests? #f ;tests require networking + #:import-path "github.com/nsqio/go-nsq")) + (propagated-inputs (list go-github-com-golang-snappy)) + (home-page "https://github.com/nsqio/go-nsq") + (synopsis "Consumer/producer library for NSQ") + (description + "The @code{nsq} Go module provides a high-level @code{Consumer} and +@code{Producer} types as well as low-level functions to communicate over the +NSQ protocol @url{https://nsq.io/}.") + (license license:expat))) + (define-public go-github-com-prometheus-client-model (let ((commit "14fe0d1b01d4d5fc031dd4bec1823bd3ebbe8016") (revision "2")) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 24c845c7b8..d7c7198cc0 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3099,32 +3099,6 @@ (define-public go-github-com-nsqio-go-diskqueue queue.") (license license:expat))) -(define-public go-github-com-nsqio-go-nsq - (package - (name "go-github-com-nsqio-go-nsq") - (version "1.1.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/nsqio/go-nsq") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1h9z3z225sdgg7fl3l7x11xn5ch6lm5flgmcj046cdp453qj2qhf")))) - (build-system go-build-system) - (arguments - (list #:tests? #f ;tests require networking - #:import-path "github.com/nsqio/go-nsq")) - (propagated-inputs (list go-github-com-golang-snappy)) - (home-page "https://github.com/nsqio/go-nsq") - (synopsis "Consumer/producer library for NSQ") - (description - "The @code{nsq} Go module provides a high-level @code{Consumer} and -@code{Producer} types as well as low-level functions to communicate over the -NSQ protocol @url{https://nsq.io/}.") - (license license:expat))) - (define-public go-github-com-hebcal-gematriya (let ((commit "fe3043f73e415eb82727701d10f2fb40f87675e9") (revision "0")) -- cgit v1.2.3 From 13e682ea94d85b4d2dd856231f4e67d47a724141 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 7 Feb 2024 21:08:28 +0000 Subject: gnu: go-github-com-nsqio-go-diskqueue: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-nsqio-go-diskqueue): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I2051eb1f8a40eeab9c8cc96c540413f5818dd78e --- gnu/packages/golang-xyz.scm | 23 +++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 23 insertions(+), 23 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index e6decd2906..e4b6a09f2d 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -378,6 +378,29 @@ (define-public go-github-com-nbrownus-go-metrics-prometheus updates the registry.") (license license:asl2.0))) +(define-public go-github-com-nsqio-go-diskqueue + (package + (name "go-github-com-nsqio-go-diskqueue") + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nsqio/go-diskqueue") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1hp66hkmfn0nyf3c53a40f94ah11a9rj01r5zp3jph9p54j8rany")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/nsqio/go-diskqueue")) + (home-page "https://github.com/nsqio/go-diskqueue") + (synopsis "Go package providing a file system backed FIFO queue") + (description + "The @code{diskqueue} Go package provides a file system backed FIFO +queue.") + (license license:expat))) + (define-public go-github-com-nsqio-go-nsq (package (name "go-github-com-nsqio-go-nsq") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index d7c7198cc0..d529490b49 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3076,29 +3076,6 @@ (define-public go-github-com-nathan-osman-go-sunrise sunset times from geographical coordinates and a date.") (license license:expat)))) -(define-public go-github-com-nsqio-go-diskqueue - (package - (name "go-github-com-nsqio-go-diskqueue") - (version "1.1.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/nsqio/go-diskqueue") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1hp66hkmfn0nyf3c53a40f94ah11a9rj01r5zp3jph9p54j8rany")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/nsqio/go-diskqueue")) - (home-page "https://github.com/nsqio/go-diskqueue") - (synopsis "Go package providing a file system backed FIFO queue") - (description - "The @code{diskqueue} Go package provides a file system backed FIFO -queue.") - (license license:expat))) - (define-public go-github-com-hebcal-gematriya (let ((commit "fe3043f73e415eb82727701d10f2fb40f87675e9") (revision "0")) -- cgit v1.2.3 From b5bbfef22a51006945835dabb187ec400429128c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 7 Feb 2024 21:20:36 +0000 Subject: gnu: go-github-com-davecgh-go-spew: Move to golang-check. * gnu/packages/golang.scm (go-github-com-davecgh-go-spew): Move from here ... * gnu/packages/golang-check.scm: ... to here. * gnu/packages/high-availability.scm: Add (gnu packages golang-check) module. Change-Id: I935006c3656b7bf18b91e529296778672338f094 --- gnu/packages/golang-check.scm | 38 ++++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 38 -------------------------------------- gnu/packages/high-availability.scm | 1 + 3 files changed, 39 insertions(+), 38 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 2decd1f664..c5e30f7fe1 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -124,6 +124,44 @@ (define-public go-github-com-cheekybits-is @end itemize\n") (license license:expat)))) +(define-public go-github-com-davecgh-go-spew + (package + (name "go-github-com-davecgh-go-spew") + (version "1.1.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/davecgh/go-spew") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0hka6hmyvp701adzag2g26cxdj47g21x6jz4sc6jjz1mn59d474y")))) + (build-system go-build-system) + (arguments + '(#:unpack-path "github.com/davecgh/go-spew" + #:import-path "github.com/davecgh/go-spew/spew")) + (home-page "https://github.com/davecgh/go-spew") + (synopsis "Deep pretty printer for Go data structures to aid in debugging") + (description "Package @command{spew} implements a deep pretty printer +for Go data structures to aid in debugging. + +A quick overview of the additional features spew provides over the built-in +printing facilities for Go data types are as follows: + +@itemize +@item Pointers are dereferenced and followed. +@item Circular data structures are detected and handled properly. +@item Custom Stringer/error interfaces are optionally invoked, including on +unexported types. +@item Custom types which only implement the Stringer/error interfaces via a +pointer receiver are optionally invoked when passing non-pointer variables. +@item Byte arrays and slices are dumped like the hexdump -C command which +includes offsets, byte values in hex, and ASCII output (only when using Dump +style). +@end itemize") + (license license:isc))) + (define-public go-github-com-frankban-quicktest (package (name "go-github-com-frankban-quicktest") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index d529490b49..269bfdec95 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5345,44 +5345,6 @@ (define-public go-github-com-libp2p-go-flow-metrics that's a lot faster (and only does simple bandwidth metrics).") (license license:expat)))) -(define-public go-github-com-davecgh-go-spew - (package - (name "go-github-com-davecgh-go-spew") - (version "1.1.1") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/davecgh/go-spew") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0hka6hmyvp701adzag2g26cxdj47g21x6jz4sc6jjz1mn59d474y")))) - (build-system go-build-system) - (arguments - '(#:unpack-path "github.com/davecgh/go-spew" - #:import-path "github.com/davecgh/go-spew/spew")) - (home-page "https://github.com/davecgh/go-spew") - (synopsis "Deep pretty printer for Go data structures to aid in debugging") - (description "Package @command{spew} implements a deep pretty printer -for Go data structures to aid in debugging. - -A quick overview of the additional features spew provides over the built-in printing facilities for Go data types are as follows: - -@itemize -@item Pointers are dereferenced and followed. -@item Circular data structures are detected and handled properly. -@item Custom Stringer/error interfaces are optionally invoked, including on -unexported types. -@item Custom types which only implement the Stringer/error interfaces via a -pointer receiver are optionally invoked when passing non-pointer variables. -@item Byte arrays and slices are dumped like the hexdump -C command which -includes offsets, byte values in hex, and ASCII output (only when using Dump -style). -@end itemize\n") - (license license:isc))) - (define-public go-github-com-btcsuite-btclog (let ((commit "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a") (revision "0")) diff --git a/gnu/packages/high-availability.scm b/gnu/packages/high-availability.scm index ad18a39738..0678edaf4e 100644 --- a/gnu/packages/high-availability.scm +++ b/gnu/packages/high-availability.scm @@ -36,6 +36,7 @@ (define-module (gnu packages high-availability) #:use-module (gnu packages gettext) #:use-module (gnu packages glib) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-check) #:use-module (gnu packages golang-compression) #:use-module (gnu packages golang-crypto) #:use-module (gnu packages golang-web) -- cgit v1.2.3 From f9ead8f7a832eb0b02b78de5ff379bfa0a1fc310 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 7 Feb 2024 21:28:03 +0000 Subject: gnu: go-github-com-burntsushi-toml: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-burntsushi-toml): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. * gnu/packages/golang-check.scm: Add (gnu packages golang-xyz) module. * gnu/packages/golang.scm: As above. * gnu/packages/shellutils.scm: As above. Change-Id: If8a645431a1fb17159681daae70db49fd21b37c1 --- gnu/packages/golang-check.scm | 3 ++- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- gnu/packages/shellutils.scm | 1 + 4 files changed, 28 insertions(+), 24 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index c5e30f7fe1..8ce85421e9 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -42,7 +42,8 @@ (define-module (gnu packages golang-check) #:use-module (guix git-download) #:use-module (gnu packages) #:use-module (gnu packages golang) - #:use-module (gnu packages golang-build)) + #:use-module (gnu packages golang-build) + #:use-module (gnu packages golang-xyz)) ;;; Commentary: ;;; diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index e4b6a09f2d..ee63a78cf7 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1,8 +1,10 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2017, 2018, 2019 Leo Famulari +;;; Copyright © 2018 Pierre-Antoine Rouby ;;; Copyright © 2020 Efraim Flashner ;;; Copyright © 2022 Dominic Martinez ;;; Copyright © 2023 Benjamin +;;; Copyright © 2023 Katherine Cox-Buday ;;; Copyright © 2023 Sharlatan Hellseher ;;; Copyright © 2023 Thomas Ieong ;;; Copyright © 2024 Artyom V. Poptsov @@ -87,6 +89,29 @@ (define-public go-github-com-armon-go-radix @url{http://en.wikipedia.org/wiki/Radix_tree,radix tree}.") (license license:expat))) +(define-public go-github-com-burntsushi-toml + (package + (name "go-github-com-burntsushi-toml") + (version "1.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/BurntSushi/toml") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1v9czq4hsyvdz7yx70y6sgq77wmrgfmn09r9cj4w85z38jqnamv7")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/BurntSushi/toml")) + (home-page "https://github.com/BurntSushi/toml") + (synopsis "Toml parser and encoder for Go") + (description + "This package is toml parser and encoder for Go. The interface is +similar to Go's standard library @code{json} and @code{xml} package.") + (license license:expat))) + (define-public go-github-com-cyberdelia-go-metrics-graphite (package (name "go-github-com-cyberdelia-go-metrics-graphite") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 269bfdec95..5a2972427c 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3808,29 +3808,6 @@ (define-public go-golang-org-x-mod loading algorithms.") (license license:bsd-3)))) -(define-public go-github-com-burntsushi-toml - (package - (name "go-github-com-burntsushi-toml") - (version "1.2.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/BurntSushi/toml") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1v9czq4hsyvdz7yx70y6sgq77wmrgfmn09r9cj4w85z38jqnamv7")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/BurntSushi/toml")) - (home-page "https://github.com/BurntSushi/toml") - (synopsis "Toml parser and encoder for Go") - (description - "This package is toml parser and encoder for Go. The interface -is similar to Go's standard library @code{json} and @code{xml} package.") - (license license:expat))) - (define-public go-github-com-hashicorp-go-uuid (package (name "go-github-com-hashicorp-go-uuid") diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm index 00352dc327..48c5250c8c 100644 --- a/gnu/packages/shellutils.scm +++ b/gnu/packages/shellutils.scm @@ -51,6 +51,7 @@ (define-module (gnu packages shellutils) #:use-module (gnu packages check) #:use-module (gnu packages flex) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-xyz) #:use-module (gnu packages libunistring) #:use-module (gnu packages ncurses) #:use-module (gnu packages pcre) -- cgit v1.2.3 From 4609bea87ca61cbb4467f02ee084a1a1468e1529 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 7 Feb 2024 21:34:03 +0000 Subject: gnu: go-github-com-bmizerany-perks-quantile: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-bmizerany-perks-quantile): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I215d8f1f2710bd21ad9a251e4cb029064a0968f6 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ 2 files changed, 24 insertions(+), 24 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index ee63a78cf7..51ea851139 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -89,6 +89,30 @@ (define-public go-github-com-armon-go-radix @url{http://en.wikipedia.org/wiki/Radix_tree,radix tree}.") (license license:expat))) +(define-public go-github-com-bmizerany-perks-quantile + (package + (name "go-github-com-bmizerany-perks-quantile") + (version "0.0.0-20230307044200-03f9df79da1e") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bmizerany/perks") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1f2a99v3618bz2mf61iwhdjm3xi1gam6v4apqgcrz71gj7ba9943")))) + (build-system go-build-system) + (arguments + (list #:unpack-path "github.com/bmizerany/perks" + #:import-path "github.com/bmizerany/perks/quantile")) + (home-page "https://github.com/bmizerany/perks") + (synopsis "Library for computing quantiles") + (description + "Perks contains the Go package @code{quantile} that computes approximate +quantiles over an unbounded data stream within low memory and CPU bounds.") + (license license:bsd-2))) + (define-public go-github-com-burntsushi-toml (package (name "go-github-com-burntsushi-toml") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 5a2972427c..089b54d5a5 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -7944,30 +7944,6 @@ (define-public go-github-com-bmatcuk-doublestar matching and globbing with support for \"doublestar\" patterns.") (license license:expat))) -(define-public go-github-com-bmizerany-perks-quantile - (package - (name "go-github-com-bmizerany-perks-quantile") - (version "0.0.0-20230307044200-03f9df79da1e") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/bmizerany/perks") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1f2a99v3618bz2mf61iwhdjm3xi1gam6v4apqgcrz71gj7ba9943")))) - (build-system go-build-system) - (arguments - (list #:unpack-path "github.com/bmizerany/perks" - #:import-path "github.com/bmizerany/perks/quantile")) - (home-page "https://github.com/bmizerany/perks") - (synopsis "Library for computing quantiles") - (description - "Perks contains the Go package @code{quantile} that computes approximate -quantiles over an unbounded data stream within low memory and CPU bounds.") - (license license:bsd-2))) - (define-public go-github-com-dlclark-regexp2 (package (name "go-github-com-dlclark-regexp2") -- cgit v1.2.3 From 997075e495f5e774202f676e2c952f92b3858a3c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 7 Feb 2024 21:49:43 +0000 Subject: gnu: go-github-com-blang-semver: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-blang-semver): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. * gnu/packages/education.scm: Add (gnu packages golang-xyz) module. * gnu/packages/ipfs.scm: As above. Change-Id: I620543088661512bcc8135922a454c5f2dc73119 --- gnu/packages/education.scm | 1 + gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ 3 files changed, 25 insertions(+), 24 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/education.scm b/gnu/packages/education.scm index 0f4a251bcc..c3009537e9 100644 --- a/gnu/packages/education.scm +++ b/gnu/packages/education.scm @@ -49,6 +49,7 @@ (define-module (gnu packages education) #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) + #:use-module (gnu packages golang-xyz) #:use-module (gnu packages gtk) #:use-module (gnu packages gstreamer) #:use-module (gnu packages image) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 51ea851139..63b710d570 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -89,6 +89,30 @@ (define-public go-github-com-armon-go-radix @url{http://en.wikipedia.org/wiki/Radix_tree,radix tree}.") (license license:expat))) +(define-public go-github-com-blang-semver + (let ((commit "60ec3488bfea7cca02b021d106d9911120d25fe9") + (revision "0")) + (package + (name "go-github-com-blang-semver") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/blang/semver") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "19pli07y5592g4dyjyj0jq5rn548vc3fz0qg3624vm1j5828p1c2")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/blang/semver")) + (home-page "https://github.com/blang/semver") + (synopsis "Semantic versioning library written in Go") + (description + "Semver is a library for Semantic versioning written in Go.") + (license license:expat)))) + (define-public go-github-com-bmizerany-perks-quantile (package (name "go-github-com-bmizerany-perks-quantile") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 089b54d5a5..9b58288d83 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4020,30 +4020,6 @@ (define-public go-github-com-tomnomnom-gron absolute \"path\" to it.") (license license:expat))) -(define-public go-github-com-blang-semver - (let ((commit "60ec3488bfea7cca02b021d106d9911120d25fe9") - (revision "0")) - (package - (name "go-github-com-blang-semver") - (version (git-version "0.0.0" revision commit)) - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/blang/semver") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "19pli07y5592g4dyjyj0jq5rn548vc3fz0qg3624vm1j5828p1c2")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/blang/semver")) - (home-page "https://github.com/blang/semver") - (synopsis "Semantic versioning library written in Go") - (description "Semver is a library for Semantic versioning written in Go.") - (license license:expat)))) - (define-public go-github-com-google-cadvisor (let ((commit "2ed7198f77395ee9a172878a0a7ab92ab59a2cfd") (revision "0")) -- cgit v1.2.3 From 6d22865f583ac04a4166ce6cf07da586beb2500a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 7 Feb 2024 21:52:51 +0000 Subject: gnu: go-github-com-bitly-timer-metrics: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-bitly-timer-metrics): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Id30d1add9ccbfbc05af114f6ccf82f353a7aa74b --- gnu/packages/golang-xyz.scm | 22 ++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 22 insertions(+), 23 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 63b710d570..e3ecae5fe5 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -89,6 +89,28 @@ (define-public go-github-com-armon-go-radix @url{http://en.wikipedia.org/wiki/Radix_tree,radix tree}.") (license license:expat))) +(define-public go-github-com-bitly-timer-metrics + (package + (name "go-github-com-bitly-timer-metrics") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bitly/timer_metrics") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "02fhx8hx8126m2cgxw9fm8q2401r7zfann8b5zy5yyark1sgkrb4")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/bitly/timer_metrics")) + (home-page "https://github.com/bitly/timer_metrics") + (synopsis "Capture timings and enable periodic metrics every @var{n} events") + (description "This package provides an efficient way to capture timing +information and periodically output metrics") + (license license:expat))) + (define-public go-github-com-blang-semver (let ((commit "60ec3488bfea7cca02b021d106d9911120d25fe9") (revision "0")) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 9b58288d83..767c22fe5c 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1906,29 +1906,6 @@ (define-public go-github-com-bitly-go-hostpool robin or epsilon greedy mode, and unresponsive hosts are avoided.") (license license:expat))) -(define-public go-github-com-bitly-timer-metrics - (package - (name "go-github-com-bitly-timer-metrics") - (version "1.0.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/bitly/timer_metrics") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "02fhx8hx8126m2cgxw9fm8q2401r7zfann8b5zy5yyark1sgkrb4")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/bitly/timer_metrics")) - (home-page "https://github.com/bitly/timer_metrics") - (synopsis "Capture timings and enable periodic metrics every @var{n} events") - (description - "This package provides an efficient way to capture timing information and -periodically output metrics") - (license license:expat))) - (define-public go-github-com-blanu-dust (package (name "go-github-com-blanu-dust") -- cgit v1.2.3 From 714462744a25eccd6a5b77bccc7a032cc01698f8 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 7 Feb 2024 21:55:26 +0000 Subject: gnu: go-github-com-bitly-go-hostpool: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-bitly-go-hostpool): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ia314e6134f229c004f23d99a9c42dbd0adf105f8 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 25 ------------------------- gnu/packages/high-availability.scm | 1 + 3 files changed, 26 insertions(+), 25 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index e3ecae5fe5..f324624f48 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -89,6 +89,31 @@ (define-public go-github-com-armon-go-radix @url{http://en.wikipedia.org/wiki/Radix_tree,radix tree}.") (license license:expat))) +(define-public go-github-com-bitly-go-hostpool + (package + (name "go-github-com-bitly-go-hostpool") + (version "0.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bitly/go-hostpool") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1iibj7dwymczw7cknrh6glc6sdpp4yap2plnyr8qphynwrzlz73w")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/bitly/go-hostpool")) + (native-inputs (list go-github-com-stretchr-testify)) + (home-page "https://github.com/bitly/go-hostpool") + (synopsis "Pool among multiple hosts from Golang") + (description + "This package provides a Go package to intelligently and flexibly pool among +multiple hosts from your Go application. Host selection can operate in round +robin or epsilon greedy mode, and unresponsive hosts are avoided.") + (license license:expat))) + (define-public go-github-com-bitly-timer-metrics (package (name "go-github-com-bitly-timer-metrics") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 767c22fe5c..64fcd09a8f 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1881,31 +1881,6 @@ (define-public go-github-com-dhowett-go-plist types.") (license license:giftware)))) -(define-public go-github-com-bitly-go-hostpool - (package - (name "go-github-com-bitly-go-hostpool") - (version "0.1.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/bitly/go-hostpool") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1iibj7dwymczw7cknrh6glc6sdpp4yap2plnyr8qphynwrzlz73w")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/bitly/go-hostpool")) - (native-inputs (list go-github-com-stretchr-testify)) - (home-page "https://github.com/bitly/go-hostpool") - (synopsis "Pool among multiple hosts from Golang") - (description - "This package provides a Go package to intelligently and flexibly pool among -multiple hosts from your Go application. Host selection can operate in round -robin or epsilon greedy mode, and unresponsive hosts are avoided.") - (license license:expat))) - (define-public go-github-com-blanu-dust (package (name "go-github-com-blanu-dust") diff --git a/gnu/packages/high-availability.scm b/gnu/packages/high-availability.scm index 0678edaf4e..b0e6631389 100644 --- a/gnu/packages/high-availability.scm +++ b/gnu/packages/high-availability.scm @@ -36,6 +36,7 @@ (define-module (gnu packages high-availability) #:use-module (gnu packages gettext) #:use-module (gnu packages glib) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) #:use-module (gnu packages golang-compression) #:use-module (gnu packages golang-crypto) -- cgit v1.2.3 From 0317445b08413d337c9d654bb15e22f685462d5f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 10 Feb 2024 16:24:01 +0000 Subject: gnu: go-golang-org-x-exp: Move to golang-build. * gnu/packages/golang.scm (go-golang-org-x-exp): Move from here ... * gnu/packages/golang-build.scm: ... to here. Change-Id: I2253ac166a8830662360b14cec0fa301686dac22 --- gnu/packages/golang-build.scm | 27 +++++++++++++++++++++++++++ gnu/packages/golang.scm | 27 --------------------------- 2 files changed, 27 insertions(+), 27 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index eeab951f1e..ffedc946c2 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2020 Leo Famulari ;;; Copyright © 2023 Artyom V. Poptsov ;;; Copyright © 2023 Felix Lechner +;;; Copyright © 2023 Katherine Cox-Buday ;;; ;;; This file is part of GNU Guix. ;;; @@ -40,6 +41,32 @@ (define-module (gnu packages golang-build) ;;; ;;; Code: +(define-public go-golang-org-x-exp + (package + (name "go-golang-org-x-exp") + (version "0.0.0-20221004215720-b9f4876ce741") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://go.googlesource.com/exp") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "030b929xyg8dpp6f4qbyg63msi6zgzj9sqmvnyphfcrjkqf7nr41")))) + (build-system go-build-system) + (arguments + '(#:import-path "golang.org/x/exp" + ;; Source-only package + #:tests? #f + #:phases (modify-phases %standard-phases + (delete 'build)))) + (home-page "https://golang.org/x/exp") + (synopsis "Experimental and deprecated Go packages") + (description "This subrepository holds experimental and deprecated (in the +@code{old} directory) packages.") + (license license:bsd-3))) + (define-public go-golang-org-x-net (let ((commit "8e0e7d8d38f2b6d21d742845570dde2902d06a1d") (revision "0")) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 64fcd09a8f..31e8065bff 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3347,33 +3347,6 @@ (define-public go-github-com-hashicorp-hcl-v2 (home-page "https://github.com/hashicorp/hcl") (license license:mpl2.0))) -(define-public go-golang-org-x-exp - (package - (name "go-golang-org-x-exp") - (version "0.0.0-20221004215720-b9f4876ce741") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://go.googlesource.com/exp") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "030b929xyg8dpp6f4qbyg63msi6zgzj9sqmvnyphfcrjkqf7nr41")))) - (build-system go-build-system) - (arguments - '(#:import-path "golang.org/x/exp" - ;; Source-only package - #:tests? #f - #:phases (modify-phases %standard-phases - (delete 'build)))) - (home-page "https://golang.org/x/exp") - (synopsis "Experimental and deprecated Go packages") - (description - "This subrepository holds experimental and deprecated (in the @code{old} -directory) packages.") - (license license:bsd-3))) - (define-public go-golang-org-x-tools (package (name "go-golang-org-x-tools") -- cgit v1.2.3 From 2e8b550b56696ef1c8c53c53098bbfc14aaa3ccc Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 10 Feb 2024 16:29:50 +0000 Subject: gnu: go-golang-org-x-mod: Move to golang-build. * gnu/packages/golang.scm (go-golang-org-x-mod): Move from here ... * gnu/packages/golang-build.scm: ... to here. * gnu/packages/shellutils.scm: Add (gnu packages golang-build) module. Change-Id: I88ce7ac1e264cb545a272f9c8a485747e84f7c82 --- gnu/packages/golang-build.scm | 36 ++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 34 ---------------------------------- gnu/packages/shellutils.scm | 1 + 3 files changed, 37 insertions(+), 34 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index ffedc946c2..a8e97e7acb 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -1,5 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2020 Leo Famulari +;;; Copyright © 2021 Ludovic Courtès +;;; Copyright © 2021 hackeryarn ;;; Copyright © 2023 Artyom V. Poptsov ;;; Copyright © 2023 Felix Lechner ;;; Copyright © 2023 Katherine Cox-Buday @@ -67,6 +69,40 @@ (define-public go-golang-org-x-exp @code{old} directory) packages.") (license license:bsd-3))) +(define-public go-golang-org-x-mod + (let ((commit "7c05a442b7c1d1a107879b4a090bb5a38d3774a1") + (revision "0")) + (package + (name "go-golang-org-x-mod") + (version (git-version "0.7.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/golang/mod") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "14r24fq3kn84k2y2jvvg8hwpy52a3q429pimrdwl5zwknbr2awmh")))) + (build-system go-build-system) + (arguments + '(#:import-path "golang.org/x/mod/" + #:tests? #f + #:phases (modify-phases %standard-phases + ;; Source-only package + (delete 'build)))) + (home-page "https://golang.org/x/mod") + (synopsis "Tools to work directly with Go module mechanics") + (description + "This repository holds packages for writing tools that work directly +with Go module mechanics. That is, it is for direct manipulation of Go +modules themselves. + +The specific case of loading packages should still be done by invoking the +@command{go} command, which remains the single point of truth for package +loading algorithms.") + (license license:bsd-3)))) + (define-public go-golang-org-x-net (let ((commit "8e0e7d8d38f2b6d21d742845570dde2902d06a1d") (revision "0")) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 31e8065bff..d796291411 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3699,40 +3699,6 @@ (define-public go-golang-org-x-xerrors (home-page "https://godoc.org/golang.org/x/xerrors") (license license:bsd-3)))) -(define-public go-golang-org-x-mod - (let ((commit "7c05a442b7c1d1a107879b4a090bb5a38d3774a1") - (revision "0")) - (package - (name "go-golang-org-x-mod") - (version (git-version "0.7.0" revision commit)) - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/golang/mod") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "14r24fq3kn84k2y2jvvg8hwpy52a3q429pimrdwl5zwknbr2awmh")))) - (build-system go-build-system) - (arguments - '(#:import-path "golang.org/x/mod/" - #:tests? #f - #:phases (modify-phases %standard-phases - ;; Source-only package - (delete 'build)))) - (home-page "https://golang.org/x/mod") - (synopsis "Tools to work directly with Go module mechanics") - (description - "This repository holds packages for writing tools that work directly -with Go module mechanics. That is, it is for direct manipulation of Go modules -themselves. - -The specific case of loading packages should still be done by invoking the -@command{go} command, which remains the single point of truth for package -loading algorithms.") - (license license:bsd-3)))) - (define-public go-github-com-hashicorp-go-uuid (package (name "go-github-com-hashicorp-go-uuid") diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm index 48c5250c8c..e58e9e61fc 100644 --- a/gnu/packages/shellutils.scm +++ b/gnu/packages/shellutils.scm @@ -51,6 +51,7 @@ (define-module (gnu packages shellutils) #:use-module (gnu packages check) #:use-module (gnu packages flex) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-xyz) #:use-module (gnu packages libunistring) #:use-module (gnu packages ncurses) -- cgit v1.2.3 From b900304377d66fc2d8cce52e86da34168893b54c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 10 Feb 2024 16:42:16 +0000 Subject: gnu: go-golang-org-x-xerrors: Move to golang-build. * gnu/packages/golang.scm (go-golang-org-x-xerrors): Move from here ... * gnu/packages/golang-build.scm: ... to here. Change-Id: I68c9aa1607d71d08eb7ea4e5caf27121cdd0df4c --- gnu/packages/golang-build.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ 2 files changed, 25 insertions(+), 24 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index a8e97e7acb..fed606e8fb 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2020 Leo Famulari +;;; Copyright © 2020 Ryan Prior ;;; Copyright © 2021 Ludovic Courtès ;;; Copyright © 2021 hackeryarn ;;; Copyright © 2023 Artyom V. Poptsov @@ -195,6 +196,30 @@ (define-public go-golang-org-x-sys support for low-level interaction with the operating system.") (license license:bsd-3)))) +(define-public go-golang-org-x-xerrors + (let ((commit "5ec99f83aff198f5fbd629d6c8d8eb38a04218ca") + (revision "0")) + (package + (name "go-golang-org-x-xerrors") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://go.googlesource.com/xerrors") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1dbzc3gmf2haazpv7cgmv97rq40g2xzwbglc17vas8dwhgwgwrzb")))) + (build-system go-build-system) + (arguments + '(#:import-path "golang.org/x/xerrors")) + (home-page "https://godoc.org/golang.org/x/xerrors") + (synopsis "Go 1.13 error values") + (description "This package holds the transition packages for the new Go +1.13 error values.") + (license license:bsd-3)))) + ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index d796291411..9a15c451ad 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3675,30 +3675,6 @@ (define-public go-golang-org-x-oauth2 spec in Go.") (license license:bsd-3)))) -(define-public go-golang-org-x-xerrors - (let ((commit "5ec99f83aff198f5fbd629d6c8d8eb38a04218ca") - (revision "0")) - (package - (name "go-golang-org-x-xerrors") - (version (git-version "0.0.0" revision commit)) - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://go.googlesource.com/xerrors") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1dbzc3gmf2haazpv7cgmv97rq40g2xzwbglc17vas8dwhgwgwrzb")))) - (build-system go-build-system) - (arguments - '(#:import-path "golang.org/x/xerrors")) - (synopsis "Go 1.13 error values") - (description - "This package holds the transition packages for the new Go 1.13 error values.") - (home-page "https://godoc.org/golang.org/x/xerrors") - (license license:bsd-3)))) - (define-public go-github-com-hashicorp-go-uuid (package (name "go-github-com-hashicorp-go-uuid") -- cgit v1.2.3 From 2175660d921364c91a9a0fedc2edce1d820c705f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 10 Feb 2024 17:00:55 +0000 Subject: gnu: go-golang.org-x-sync-errgroup: Move to golang-build. * gnu/packages/golang.scm (go-golang.org-x-sync-errgroup, go-golang.org-x-sync-semaphore): Move from here ... * gnu/packages/golang-build.scm: ... to here. * gnu/packages/check.scm: Add (gnu packages golang-build) module. Change-Id: Ie886c0f44e0a70629e23371b447f5a35006ade21 --- gnu/packages/check.scm | 1 + gnu/packages/golang-build.scm | 41 +++++++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 38 -------------------------------------- gnu/packages/terminals.scm | 1 + 4 files changed, 43 insertions(+), 38 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 4f593cde8d..b520d6c58a 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -77,6 +77,7 @@ (define-module (gnu packages check) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages gtk) #:use-module (gnu packages guile) #:use-module (gnu packages guile-xyz) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index fed606e8fb..8e64571929 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -1,11 +1,14 @@ ;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2020 Danny Milosavljevic ;;; Copyright © 2020 Leo Famulari ;;; Copyright © 2020 Ryan Prior +;;; Copyright © 2020 Vagrant Cascadian ;;; Copyright © 2021 Ludovic Courtès ;;; Copyright © 2021 hackeryarn ;;; Copyright © 2023 Artyom V. Poptsov ;;; Copyright © 2023 Felix Lechner ;;; Copyright © 2023 Katherine Cox-Buday +;;; Copyright © 2023 Timo Wilken ;;; ;;; This file is part of GNU Guix. ;;; @@ -165,6 +168,44 @@ (define-public go-golang-org-x-net-html (description "This package provides an HTML5-compliant tokenizer and parser."))) +(define-public go-golang.org-x-sync-errgroup + (let ((commit "cd5d95a43a6e21273425c7ae415d3df9ea832eeb") + (revision "0")) + (package + (name "go-golang.org-x-sync-errgroup") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://go.googlesource.com/sync") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1nqkyz2y1qvqcma52ijh02s8aiqmkfb95j08f6zcjhbga3ds6hds")))) + (build-system go-build-system) + (arguments + '(#:import-path "golang.org/x/sync/errgroup" + #:unpack-path "golang.org/x/sync")) + (home-page "https://godoc.org/golang.org/x/sync/errgroup") + (synopsis "Synchronization, error propagation, and Context cancellation +for groups of goroutines working on subtasks of a common task") + (description "This package provides synchronization, error +propagation, and Context cancellation for groups of goroutines working on +subtasks of a common task.") + (license license:bsd-3)))) + +(define-public go-golang.org-x-sync-semaphore + (package + (inherit go-golang.org-x-sync-errgroup) + (name "go-golang.org-x-sync-semaphore") + (arguments + '(#:import-path "golang.org/x/sync/semaphore" + #:unpack-path "golang.org/x/sync")) + (home-page "https://godoc.org/golang.org/x/sync/semaphore") + (synopsis "Weighted semaphore implementation in Go") + (description "Weighted semaphore implementation in Go."))) + (define-public go-golang-org-x-sys (let ((commit "ca59edaa5a761e1d0ea91d6c07b063f85ef24f78") (revision "0")) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 9a15c451ad..33cc030894 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -7023,44 +7023,6 @@ (define-public go-github-com-google-renameio create or replace a file or symbolic link.") (license license:asl2.0))) -(define-public go-golang.org-x-sync-errgroup - (let ((commit "cd5d95a43a6e21273425c7ae415d3df9ea832eeb") - (revision "0")) - (package - (name "go-golang.org-x-sync-errgroup") - (version (git-version "0.0.0" revision commit)) - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://go.googlesource.com/sync") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1nqkyz2y1qvqcma52ijh02s8aiqmkfb95j08f6zcjhbga3ds6hds")))) - (build-system go-build-system) - (arguments - '(#:import-path "golang.org/x/sync/errgroup" - #:unpack-path "golang.org/x/sync")) - (synopsis "Synchronization, error propagation, and Context cancellation -for groups of goroutines working on subtasks of a common task") - (description "This package provides synchronization, error propagation, -and Context cancellation for groups of goroutines working on subtasks of a -common task.") - (home-page "https://godoc.org/golang.org/x/sync/errgroup") - (license license:bsd-3)))) - -(define-public go-golang.org-x-sync-semaphore - (package - (inherit go-golang.org-x-sync-errgroup) - (name "go-golang.org-x-sync-semaphore") - (arguments - '(#:import-path "golang.org/x/sync/semaphore" - #:unpack-path "golang.org/x/sync")) - (synopsis "Weighted semaphore implementation in Go") - (description "Weighted semaphore implementation in Go.") - (home-page "https://godoc.org/golang.org/x/sync/semaphore"))) - (define (go-gotest-tools-source version sha256-base32-hash) (origin (method git-fetch) diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm index f609de8eff..37223d0d18 100644 --- a/gnu/packages/terminals.scm +++ b/gnu/packages/terminals.scm @@ -90,6 +90,7 @@ (define-module (gnu packages terminals) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages gtk) #:use-module (gnu packages image) #:use-module (gnu packages libcanberra) -- cgit v1.2.3 From 13188641f3a3f104e1c73700b8bfa99121643e27 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 10 Feb 2024 17:23:32 +0000 Subject: gnu: go-golang-org-x-sync: Move to golang-build. * gnu/packages/golang.scm (go-golang-org-x-sync): Move from here ... * gnu/packages/golang-build.scm: ... to here. Change-Id: I28b72dc45116398512c0255ac9e06b9c539e9e7b --- gnu/packages/golang-build.scm | 30 ++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 30 ------------------------------ 2 files changed, 30 insertions(+), 30 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 8e64571929..7b8653960d 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2020 Danny Milosavljevic +;;; Copyright © 2020 HiPhish ;;; Copyright © 2020 Leo Famulari ;;; Copyright © 2020 Ryan Prior ;;; Copyright © 2020 Vagrant Cascadian @@ -168,6 +169,35 @@ (define-public go-golang-org-x-net-html (description "This package provides an HTML5-compliant tokenizer and parser."))) +(define-public go-golang-org-x-sync + (let ((commit "8fcdb60fdcc0539c5e357b2308249e4e752147f1") + (revision "1")) + (package + (name "go-golang-org-x-sync") + (version (git-version "0.1.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://go.googlesource.com/sync") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "07qrhni6f5hh5p95k1yk6s4wsj341q663irvx6rllrxfsymj6a0z")))) + (build-system go-build-system) + (arguments + `(#:import-path "golang.org/x/sync" + #:tests? #f + ;; Source-only package + #:phases (modify-phases %standard-phases + (delete 'build)))) + (home-page "https://go.googlesource.com/sync/") + (synopsis "Additional Go concurrency primitives") + (description "This package provides Go concurrency primitives in +addition to the ones provided by the language and “sync” and “sync/atomic” +packages.") + (license license:bsd-3)))) + (define-public go-golang.org-x-sync-errgroup (let ((commit "cd5d95a43a6e21273425c7ae415d3df9ea832eeb") (revision "0")) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 33cc030894..711a762a29 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3559,36 +3559,6 @@ (define-public go-golang-org-x-image processing.") (license license:bsd-3)))) -(define-public go-golang-org-x-sync - (let ((commit "8fcdb60fdcc0539c5e357b2308249e4e752147f1") - (revision "1")) - (package - (name "go-golang-org-x-sync") - (version (git-version "0.1.0" revision commit)) - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://go.googlesource.com/sync") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "07qrhni6f5hh5p95k1yk6s4wsj341q663irvx6rllrxfsymj6a0z")))) - (build-system go-build-system) - (arguments - `(#:import-path "golang.org/x/sync" - #:tests? #f - ;; Source-only package - #:phases (modify-phases %standard-phases - (delete 'build)))) - (synopsis "Additional Go concurrency primitives") - (description - "This package provides Go concurrency primitives in addition -to the ones provided by the language and “sync” and “sync/atomic” -packages.") - (home-page "https://go.googlesource.com/sync/") - (license license:bsd-3)))) - (define-public go-golang-org-x-text (package (name "go-golang-org-x-text") -- cgit v1.2.3 From d8b0ad79a897a40eb2344ffad8f6ac48753d373a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 10 Feb 2024 17:34:47 +0000 Subject: gnu: go-golang-org-x-term: Move to golang-build. * gnu/packages/golang.scm (go-golang-org-x-term): Move from here ... * gnu/packages/golang-build.scm: ... to here. * gnu/packages/disk.scm: Add (gnu packages golang-build) module. * gnu/packages/image-viewers.scm: As above. Change-Id: Ibdb637bb129437ef74a0270fd44edc8804bb3055 --- gnu/packages/disk.scm | 1 + gnu/packages/golang-build.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ gnu/packages/image-viewers.scm | 1 + 4 files changed, 27 insertions(+), 24 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm index 165f0a8a74..b0117d77ce 100644 --- a/gnu/packages/disk.scm +++ b/gnu/packages/disk.scm @@ -69,6 +69,7 @@ (define-module (gnu packages disk) #:use-module (gnu packages gnome) #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages graphics) #:use-module (gnu packages gtk) #:use-module (gnu packages guile) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 7b8653960d..db94ad2c7b 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -4,11 +4,13 @@ ;;; Copyright © 2020 Leo Famulari ;;; Copyright © 2020 Ryan Prior ;;; Copyright © 2020 Vagrant Cascadian +;;; Copyright © 2021 Arun Isaac ;;; Copyright © 2021 Ludovic Courtès ;;; Copyright © 2021 hackeryarn ;;; Copyright © 2023 Artyom V. Poptsov ;;; Copyright © 2023 Felix Lechner ;;; Copyright © 2023 Katherine Cox-Buday +;;; Copyright © 2023 Nicolas Graves ;;; Copyright © 2023 Timo Wilken ;;; ;;; This file is part of GNU Guix. @@ -267,6 +269,29 @@ (define-public go-golang-org-x-sys support for low-level interaction with the operating system.") (license license:bsd-3)))) +(define-public go-golang-org-x-term + (package + (name "go-golang-org-x-term") + (version "0.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://go.googlesource.com/term") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "16s3d62fgdhiqvcib61s5pwxp08hhrmzx8bdv5zk1w1krjizdarl")))) + (build-system go-build-system) + (arguments '(#:import-path "golang.org/x/term")) + (propagated-inputs + (list go-golang-org-x-sys)) + (home-page "https://pkg.go.dev/golang.org/x/term") + (synopsis "Go terminal/console support") + (description "@code{term} provides support functions for dealing with +terminals, as commonly found on Unix systems.") + (license license:bsd-3))) + (define-public go-golang-org-x-xerrors (let ((commit "5ec99f83aff198f5fbd629d6c8d8eb38a04218ca") (revision "0")) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 711a762a29..6ca29596b4 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -9680,30 +9680,6 @@ (define-public go-github-com-dustin-go-humanize back.") (license license:expat))) -(define-public go-golang-org-x-term - (package - (name "go-golang-org-x-term") - (version "0.3.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://go.googlesource.com/term") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "16s3d62fgdhiqvcib61s5pwxp08hhrmzx8bdv5zk1w1krjizdarl")))) - (build-system go-build-system) - (arguments '(#:import-path "golang.org/x/term")) - (propagated-inputs - (list go-golang-org-x-sys)) - (home-page "https://pkg.go.dev/golang.org/x/term") - (synopsis "Go terminal/console support") - (description "@code{term} provides support functions for dealing with -terminals, as commonly found on Unix systems.") - (license license:bsd-3))) - (define-public go-github-com-klauspost-compress (package (name "go-github-com-klauspost-compress") diff --git a/gnu/packages/image-viewers.scm b/gnu/packages/image-viewers.scm index 206b91c878..f2b87268f0 100644 --- a/gnu/packages/image-viewers.scm +++ b/gnu/packages/image-viewers.scm @@ -77,6 +77,7 @@ (define-module (gnu packages image-viewers) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages gtk) #:use-module (gnu packages graphics) #:use-module (gnu packages image) -- cgit v1.2.3 From 82a9ceebe8cf3ed73345c6be42465865c9613f8c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 10 Feb 2024 17:44:46 +0000 Subject: gnu: go-golang-org-x-time: Move to golang-build. * gnu/packages/golang.scm (go-golang-org-x-time): Move from here ... * gnu/packages/golang-build.scm: ... to here. * gnu/packages/high-availability.scm: Add (gnu packages golang-build) module. Change-Id: I2f2704501b19d991d153c6d8636e1f9fc4cf154b --- gnu/packages/golang-build.scm | 30 ++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 31 ------------------------------- 2 files changed, 30 insertions(+), 31 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index db94ad2c7b..3885701078 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -292,6 +292,36 @@ (define-public go-golang-org-x-term terminals, as commonly found on Unix systems.") (license license:bsd-3))) +(define-public go-golang-org-x-time + (let ((commit "9d24e82272b4f38b78bc8cff74fa936d31ccd8ef") + (revision "2")) + (package + (name "go-golang-org-x-time") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://go.googlesource.com/time") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1f5nkr4vys2vbd8wrwyiq2f5wcaahhpxmia85d1gshcbqjqf8dkb")))) + (build-system go-build-system) + (arguments + `(#:import-path "golang.org/x/time" + ;; Source-only package + #:tests? #f + #:phases + (modify-phases %standard-phases + ;; Source-only package + (delete 'build)))) + (home-page "https://godoc.org/golang.org/x/time/rate") + (synopsis "Supplemental Go time libraries") + (description "This package provides supplemental Go libraries related to +time.") + (license license:bsd-3)))) + (define-public go-golang-org-x-xerrors (let ((commit "5ec99f83aff198f5fbd629d6c8d8eb38a04218ca") (revision "0")) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 6ca29596b4..63d54311b0 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3587,37 +3587,6 @@ (define-public go-golang-org-x-text (home-page "https://go.googlesource.com/text") (license license:bsd-3))) -(define-public go-golang-org-x-time - (let ((commit "9d24e82272b4f38b78bc8cff74fa936d31ccd8ef") - (revision "2")) - (package - (name "go-golang-org-x-time") - (version (git-version "0.0.0" revision commit)) - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://go.googlesource.com/time") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1f5nkr4vys2vbd8wrwyiq2f5wcaahhpxmia85d1gshcbqjqf8dkb")))) - (build-system go-build-system) - (arguments - `(#:import-path "golang.org/x/time" - ; Source-only package - #:tests? #f - #:phases - (modify-phases %standard-phases - (delete 'build)))) -; (propagated-inputs -; `(("go-golang-org-x-net" ,go-golang-org-x-net))) - (synopsis "Supplemental Go time libraries") - (description "This package provides supplemental Go libraries related to -time.") - (home-page "https://godoc.org/golang.org/x/time/rate") - (license license:bsd-3)))) - (define-public go-golang-org-x-oauth2 (let ((commit "0f29369cfe4552d0e4bcddc57cc75f4d7e672a33") (revision "1")) -- cgit v1.2.3 From de36ec14804cdb2444013b30abb215e150018e75 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 10 Feb 2024 21:14:55 +0000 Subject: gnu: go-golang-org-x-text: Move to golang-build. * gnu/packages/golang.scm (go-golang-org-x-text): Move from here ... * gnu/packages/golang-build.scm: ... to here. * gnu/packages/admin.scm: Add (gnu packages golang-build) module. * gnu/packages/bioinformatics.scm: As above. * gnu/packages/mail.scm: As above. Change-Id: Ifd15b35b460ae30c5c1d677551e95842b322b246 --- gnu/packages/admin.scm | 1 + gnu/packages/bioinformatics.scm | 1 + gnu/packages/golang-build.scm | 29 +++++++++++++++++++++++++++++ gnu/packages/golang.scm | 28 ---------------------------- gnu/packages/mail.scm | 1 + 5 files changed, 32 insertions(+), 28 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 2dbb604fa9..c595e1270f 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -130,6 +130,7 @@ (define-module (gnu packages admin) #:use-module (gnu packages gnome) #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages groff) #:use-module (gnu packages gtk) #:use-module (gnu packages guile) diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index 554df0b42f..08683bc8e9 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -93,6 +93,7 @@ (define-module (gnu packages bioinformatics) #:use-module (gnu packages gcc) #:use-module (gnu packages gd) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) #:use-module (gnu packages glib) #:use-module (gnu packages graph) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 3885701078..325470ca4e 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -1,4 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2019 Brian Leung ;;; Copyright © 2020 Danny Milosavljevic ;;; Copyright © 2020 HiPhish ;;; Copyright © 2020 Leo Famulari @@ -292,6 +293,34 @@ (define-public go-golang-org-x-term terminals, as commonly found on Unix systems.") (license license:bsd-3))) +(define-public go-golang-org-x-text + (package + (name "go-golang-org-x-text") + (version "0.3.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://go.googlesource.com/text") + (commit (string-append "v" version)))) + (file-name (string-append "go.googlesource.com-text-" + version "-checkout")) + (sha256 + (base32 "0flv9idw0jm5nm8lx25xqanbkqgfiym6619w575p7nrdh0riqwqh")))) + (build-system go-build-system) + (arguments + `(#:import-path "golang.org/x/text" + ;; Source-only package + #:tests? #f + #:phases + (modify-phases %standard-phases + (delete 'build)))) + (home-page "https://go.googlesource.com/text") + (synopsis "Supplemental Go text processing libraries") + (description "This package provides supplemental Go libraries for text +processing.") + (license license:bsd-3))) + (define-public go-golang-org-x-time (let ((commit "9d24e82272b4f38b78bc8cff74fa936d31ccd8ef") (revision "2")) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 63d54311b0..7ec3fce53d 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3559,34 +3559,6 @@ (define-public go-golang-org-x-image processing.") (license license:bsd-3)))) -(define-public go-golang-org-x-text - (package - (name "go-golang-org-x-text") - (version "0.3.2") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://go.googlesource.com/text") - (commit (string-append "v" version)))) - (file-name (string-append "go.googlesource.com-text-" - version "-checkout")) - (sha256 - (base32 - "0flv9idw0jm5nm8lx25xqanbkqgfiym6619w575p7nrdh0riqwqh")))) - (build-system go-build-system) - (arguments - `(#:import-path "golang.org/x/text" - ; Source-only package - #:tests? #f - #:phases - (modify-phases %standard-phases - (delete 'build)))) - (synopsis "Supplemental Go text processing libraries") - (description "This package provides supplemental Go libraries for text - processing.") - (home-page "https://go.googlesource.com/text") - (license license:bsd-3))) - (define-public go-golang-org-x-oauth2 (let ((commit "0f29369cfe4552d0e4bcddc57cc75f4d7e672a33") (revision "1")) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 78d407a05f..b6f167715c 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -108,6 +108,7 @@ (define-module (gnu packages mail) #:use-module (gnu packages gnome) #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) #:use-module (gnu packages golang-crypto) #:use-module (gnu packages golang-web) -- cgit v1.2.3 From faabd385eb14d42fbbcb7e71d9805c918b751458 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 10 Feb 2024 21:25:12 +0000 Subject: gnu: go-github-com-yuin-goldmark: Move to golang-build. * gnu/packages/golang.scm (go-github-com-yuin-goldmark): Move from here ... * gnu/packages/golang-build.scm: ... to here. Change-Id: If553b4a00b288a913d1d54da8b5b52eab87bb277 --- gnu/packages/golang-build.scm | 22 ++++++++++++++++++++++ gnu/packages/golang.scm | 21 --------------------- 2 files changed, 22 insertions(+), 21 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 325470ca4e..b2b2872907 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -3,6 +3,7 @@ ;;; Copyright © 2020 Danny Milosavljevic ;;; Copyright © 2020 HiPhish ;;; Copyright © 2020 Leo Famulari +;;; Copyright © 2020 Oleg Pykhalov ;;; Copyright © 2020 Ryan Prior ;;; Copyright © 2020 Vagrant Cascadian ;;; Copyright © 2021 Arun Isaac @@ -51,6 +52,27 @@ (define-module (gnu packages golang-build) ;;; ;;; Code: +(define-public go-github-com-yuin-goldmark + (package + (name "go-github-com-yuin-goldmark") + (version "1.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/yuin/goldmark") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "12rsnsf65drcp0jfw2jl9w589vsn3pxdk1zh3v9q908iigngrcmy")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/yuin/goldmark")) + (home-page "https://github.com/yuin/goldmark/") + (synopsis "Markdown parser") + (description "This package provides a markdown parser.") + (license license:expat))) + (define-public go-golang-org-x-exp (package (name "go-golang-org-x-exp") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 7ec3fce53d..fc4ca576cc 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -7946,27 +7946,6 @@ (define-public go-github-com-olekukonko-ts size of the terminal.") (license license:expat)))) -(define-public go-github-com-yuin-goldmark - (package - (name "go-github-com-yuin-goldmark") - (version "1.2.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/yuin/goldmark") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "12rsnsf65drcp0jfw2jl9w589vsn3pxdk1zh3v9q908iigngrcmy")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/yuin/goldmark")) - (home-page "https://github.com/yuin/goldmark/") - (synopsis "Markdown parser") - (description "This package provides a markdown parser.") - (license license:expat))) - (define-public go-github-com-charmbracelet-glamour (package (name "go-github-com-charmbracelet-glamour") -- cgit v1.2.3 From 92df6b5c70288c0ad9bf6e02d96de9de9092b8c2 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 10 Feb 2024 21:28:17 +0000 Subject: gnu: go-golang-org-x-tools: Move to golang-build. * gnu/packages/golang.scm (go-golang-org-x-tools): Move from here ... * gnu/packages/golang-build.scm: ... to here. Change-Id: Ib9a69a5dab73b6f9d935fd0216658f5e4f8cf1f8 --- gnu/packages/golang-build.scm | 39 +++++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 41 ----------------------------------------- 2 files changed, 39 insertions(+), 41 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index b2b2872907..87f184fb14 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -373,6 +373,45 @@ (define-public go-golang-org-x-time time.") (license license:bsd-3)))) +(define-public go-golang-org-x-tools + (package + (name "go-golang-org-x-tools") + (version "0.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://go.googlesource.com/tools") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "08kx2nndq3sr6xai7403mbsqvz5shxmp2icylfr2fmwagr59cb2n")) + (modules '((guix build utils))) + (snippet + '(begin + ;; gopls versions are tagged separately, and it is a + ;; separate Guix package. + (delete-file-recursively "gopls"))))) + (build-system go-build-system) + (arguments + `(#:import-path "golang.org/x/tools" + ;; Source-only package + #:tests? #f + #:phases + (modify-phases %standard-phases + ;; Source-only package + (delete 'build)))) + (propagated-inputs + (list go-github-com-yuin-goldmark + go-golang-org-x-mod + go-golang-org-x-net + go-golang-org-x-sys)) + (home-page "https://go.googlesource.com/tools/") + (synopsis "Tools that support the Go programming language") + (description "This package provides miscellaneous tools that support the +Go programming language.") + (license license:bsd-3))) + (define-public go-golang-org-x-xerrors (let ((commit "5ec99f83aff198f5fbd629d6c8d8eb38a04218ca") (revision "0")) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index fc4ca576cc..341df24bd4 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3347,47 +3347,6 @@ (define-public go-github-com-hashicorp-hcl-v2 (home-page "https://github.com/hashicorp/hcl") (license license:mpl2.0))) -(define-public go-golang-org-x-tools - (package - (name "go-golang-org-x-tools") - (version "0.5.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://go.googlesource.com/tools") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "08kx2nndq3sr6xai7403mbsqvz5shxmp2icylfr2fmwagr59cb2n")) - (modules '((guix build utils))) - (snippet - '(begin - ;; gopls versions are tagged separately, and it is a - ;; separate Guix package. - (delete-file-recursively "gopls"))))) - (build-system go-build-system) - (arguments - `(#:import-path "golang.org/x/tools" - ;; Source-only package - #:tests? #f - #:phases - (modify-phases %standard-phases - ;; Source-only package - (delete 'build)))) - (propagated-inputs - (list - go-github-com-yuin-goldmark - go-golang-org-x-mod - go-golang-org-x-net - go-golang-org-x-sys)) - (synopsis "Tools that support the Go programming language") - (description "This package provides miscellaneous tools that support the -Go programming language.") - (home-page "https://go.googlesource.com/tools/") - (license license:bsd-3))) - (define-public go-golang-org-x-crypto (package (name "go-golang-org-x-crypto") -- cgit v1.2.3 From b8e8cb296f6dc7cc906f50701984c96b9d2508c8 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 10 Feb 2024 21:32:16 +0000 Subject: gnu: go-golang-org-x-image: Move to golang-build. * gnu/packages/golang.scm (go-golang-org-x-image): Move from here ... * gnu/packages/golang-build.scm: ... to here. * gnu/packages/game.scm: Add (gnu packages golang-build) module. Change-Id: Icd0b303d8f7544f6eae10ac30d7bd01779abaede --- gnu/packages/games.scm | 1 + gnu/packages/golang-build.scm | 31 +++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 30 ------------------------------ 3 files changed, 32 insertions(+), 30 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index f95681fbb7..c257a2cfe8 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -150,6 +150,7 @@ (define-module (gnu packages games) #:use-module (gnu packages gnupg) #:use-module (gnu packages gnuzilla) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages gperf) #:use-module (gnu packages graphics) #:use-module (gnu packages graphviz) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 87f184fb14..b717c3ad27 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2019 Brian Leung ;;; Copyright © 2020 Danny Milosavljevic +;;; Copyright © 2020 Efraim Flashner ;;; Copyright © 2020 HiPhish ;;; Copyright © 2020 Leo Famulari ;;; Copyright © 2020 Oleg Pykhalov @@ -99,6 +100,36 @@ (define-public go-golang-org-x-exp @code{old} directory) packages.") (license license:bsd-3))) +(define-public go-golang-org-x-image + (let ((commit "58c23975cae11f062d4b3b0c143fe248faac195d") + (revision "1")) + (package + (name "go-golang-org-x-image") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://go.googlesource.com/image") + (commit commit))) + (file-name (string-append "go.googlesource.com-image-" + version "-checkout")) + (sha256 + (base32 "0i2p2girc1sfcic6xs6vrq0fp3szfx057xppksb67kliywjjrm5x")))) + (build-system go-build-system) + (arguments + `(#:import-path "golang.org/x/image" + ;; Source-only package + #:tests? #f + #:phases + (modify-phases %standard-phases + (delete 'build)))) + (home-page "https://go.googlesource.com/image") + (synopsis "Supplemental Go image libraries") + (description "This package provides supplemental Go libraries for image +processing.") + (license license:bsd-3)))) + (define-public go-golang-org-x-mod (let ((commit "7c05a442b7c1d1a107879b4a090bb5a38d3774a1") (revision "0")) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 341df24bd4..98a3167aef 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3488,36 +3488,6 @@ (define-public gopls editor.") (license license:bsd-3))) -(define-public go-golang-org-x-image - (let ((commit "58c23975cae11f062d4b3b0c143fe248faac195d") - (revision "1")) - (package - (name "go-golang-org-x-image") - (version (git-version "0.0.0" revision commit)) - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://go.googlesource.com/image") - (commit commit))) - (file-name (string-append "go.googlesource.com-image-" - version "-checkout")) - (sha256 - (base32 - "0i2p2girc1sfcic6xs6vrq0fp3szfx057xppksb67kliywjjrm5x")))) - (build-system go-build-system) - (arguments - `(#:import-path "golang.org/x/image" - ; Source-only package - #:tests? #f - #:phases - (modify-phases %standard-phases - (delete 'build)))) - (home-page "https://go.googlesource.com/image") - (synopsis "Supplemental Go image libraries") - (description "This package provides supplemental Go libraries for image -processing.") - (license license:bsd-3)))) - (define-public go-golang-org-x-oauth2 (let ((commit "0f29369cfe4552d0e4bcddc57cc75f4d7e672a33") (revision "1")) -- cgit v1.2.3 From 19c8f9e0fe0f5489b1fdedab5190e4d0a4cddcb9 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 10 Feb 2024 21:39:59 +0000 Subject: gnu: go-golang-org-x-crypto: Move to golang-build. * gnu/packages/golang.scm (go-golang-org-x-crypto): Move from here ... * gnu/packages/golang-build.scm: ... to here. * gnu/packages/backup.scm: Add (gnu packages golang-build) module. * gnu/packages/crypto.scm: As above. Change-Id: I5daad7fe90e1507958fe73c04fc043ebbc006395 --- gnu/packages/backup.scm | 1 + gnu/packages/crypto.scm | 1 + gnu/packages/golang-build.scm | 34 +++++++++++++++++++++++++++++++++- gnu/packages/golang.scm | 31 ------------------------------- 4 files changed, 35 insertions(+), 32 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm index f89f1205fe..0805e6f5b9 100644 --- a/gnu/packages/backup.scm +++ b/gnu/packages/backup.scm @@ -71,6 +71,7 @@ (define-module (gnu packages backup) #:use-module (gnu packages glib) #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-crypto) #:use-module (gnu packages golang-web) #:use-module (gnu packages gperf) diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm index c7145bcb0c..6857ea2075 100644 --- a/gnu/packages/crypto.scm +++ b/gnu/packages/crypto.scm @@ -60,6 +60,7 @@ (define-module (gnu packages crypto) #:use-module (gnu packages gettext) #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) #:use-module (gnu packages graphviz) #:use-module (gnu packages image) #:use-module (gnu packages kerberos) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index b717c3ad27..8b7dca46a6 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -1,14 +1,15 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2019 Brian Leung +;;; Copyright © 2019, 2020 Leo Famulari ;;; Copyright © 2020 Danny Milosavljevic ;;; Copyright © 2020 Efraim Flashner ;;; Copyright © 2020 HiPhish -;;; Copyright © 2020 Leo Famulari ;;; Copyright © 2020 Oleg Pykhalov ;;; Copyright © 2020 Ryan Prior ;;; Copyright © 2020 Vagrant Cascadian ;;; Copyright © 2021 Arun Isaac ;;; Copyright © 2021 Ludovic Courtès +;;; Copyright © 2021 Sarah Morgensen ;;; Copyright © 2021 hackeryarn ;;; Copyright © 2023 Artyom V. Poptsov ;;; Copyright © 2023 Felix Lechner @@ -74,6 +75,37 @@ (define-public go-github-com-yuin-goldmark (description "This package provides a markdown parser.") (license license:expat))) +(define-public go-golang-org-x-crypto + (package + (name "go-golang-org-x-crypto") + (version "0.4.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://go.googlesource.com/crypto") + (commit (string-append "v" version)))) + (file-name (string-append "go.googlesource.com-crypto-" + version "-checkout")) + (sha256 + (base32 "13i0yz4hvc4qdr438nmzilvl5ns73v3910bakcddny3jbzq72i2m")))) + (build-system go-build-system) + (arguments + '(#:import-path "golang.org/x/crypto" + ;; Source-only package + #:tests? #f + #:phases + (modify-phases %standard-phases + ;; Source-only package + (delete 'build)))) + (propagated-inputs + (list go-golang-org-x-sys)) + (home-page "https://go.googlesource.com/crypto/") + (synopsis "Supplementary cryptographic libraries in Go") + (description "This package provides supplementary cryptographic libraries +for the Go language.") + (license license:bsd-3))) + (define-public go-golang-org-x-exp (package (name "go-golang-org-x-exp") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 98a3167aef..a2073b5c5f 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3347,37 +3347,6 @@ (define-public go-github-com-hashicorp-hcl-v2 (home-page "https://github.com/hashicorp/hcl") (license license:mpl2.0))) -(define-public go-golang-org-x-crypto - (package - (name "go-golang-org-x-crypto") - (version "0.4.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://go.googlesource.com/crypto") - (commit (string-append "v" version)))) - (file-name (string-append "go.googlesource.com-crypto-" - version "-checkout")) - (sha256 - (base32 - "13i0yz4hvc4qdr438nmzilvl5ns73v3910bakcddny3jbzq72i2m")))) - (build-system go-build-system) - (arguments - '(#:import-path "golang.org/x/crypto" - ;; Source-only package - #:tests? #f - #:phases - (modify-phases %standard-phases - ;; Source-only package - (delete 'build)))) - (propagated-inputs - (list go-golang-org-x-sys)) - (synopsis "Supplementary cryptographic libraries in Go") - (description "This package provides supplementary cryptographic libraries -for the Go language.") - (home-page "https://go.googlesource.com/crypto/") - (license license:bsd-3))) - (define-public govulncheck (package (name "govulncheck") -- cgit v1.2.3 From d8f69addc2e6a3045e4ed9e91a6ac2b5829e6068 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 10 Feb 2024 22:06:15 +0000 Subject: gnu: go-github-com-klauspost-compress: Move to golang-compression. * gnu/packages/golang.scm (go-github-com-klauspost-compress): Move from here ... * gnu/packages/golang-compression.scm: ... to here. * gnu/packages/golang-compression.scm: Add (gnu packages golang-compression) module. * gnu/packages/golang-crypto.scm: As above. * gnu/packages/golang-web.scm: As above. * gnu/packages/uucp.scm: As above. Change-Id: Ia99f1e6aae7f75940fc150eb02862c0b3e9f3325 --- gnu/packages/golang-compression.scm | 31 +++++++++++++++++++++++++++++++ gnu/packages/golang-crypto.scm | 3 ++- gnu/packages/golang-web.scm | 1 + gnu/packages/golang.scm | 32 -------------------------------- gnu/packages/uucp.scm | 1 + 5 files changed, 35 insertions(+), 33 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang-compression.scm b/gnu/packages/golang-compression.scm index 670572ea90..5aacc34a66 100644 --- a/gnu/packages/golang-compression.scm +++ b/gnu/packages/golang-compression.scm @@ -56,6 +56,37 @@ (define-public go-github-com-golang-snappy compression format.") (license license:bsd-3))) +(define-public go-github-com-klauspost-compress + (package + (name "go-github-com-klauspost-compress") + (version "1.13.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/klauspost/compress") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ydnf9rizlhm8rilh14674qqx272sbwbkjx06xn9pqvy6mmn2r3r")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/klauspost/compress" + #:phases + (modify-phases %standard-phases + (add-before 'reset-gzip-timestamps 'fix-permissions + (lambda* (#:key outputs #:allow-other-keys) + ;; Provide write permissions on gzip files so that + ;; reset-gzip-timestamps has sufficient permissions. + (for-each make-file-writable + (find-files (assoc-ref outputs "out") ".gz$"))))))) + (propagated-inputs + (list go-github-com-golang-snappy)) + (home-page "https://github.com/klauspost/compress") + (synopsis "Go compression library") + (description "@code{compress} provides various compression algorithms.") + (license license:bsd-3))) + ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index 39e7412558..58fd9cb250 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -45,7 +45,8 @@ (define-module (gnu packages golang-crypto) #:use-module (gnu packages) #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) - #:use-module (gnu packages golang-check)) + #:use-module (gnu packages golang-check) + #:use-module (gnu packages golang-compression)) ;;; Commentary: ;;; diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index d7fb7dd366..28a9fad113 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -50,6 +50,7 @@ (define-module (gnu packages golang-web) #:use-module (gnu packages golang) #: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-xyz) #:use-module (gnu packages tls) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index a2073b5c5f..69205badbe 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -9498,38 +9498,6 @@ (define-public go-github-com-dustin-go-humanize back.") (license license:expat))) -(define-public go-github-com-klauspost-compress - (package - (name "go-github-com-klauspost-compress") - (version "1.13.1") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/klauspost/compress") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0ydnf9rizlhm8rilh14674qqx272sbwbkjx06xn9pqvy6mmn2r3r")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/klauspost/compress" - #:phases - (modify-phases %standard-phases - (add-before 'reset-gzip-timestamps 'fix-permissions - (lambda* (#:key outputs #:allow-other-keys) - ;; Provide write permissions on gzip files so that - ;; reset-gzip-timestamps has sufficient permissions. - (for-each make-file-writable - (find-files (assoc-ref outputs "out") ".gz$"))))))) - (propagated-inputs - (list go-github-com-golang-snappy)) - (home-page "https://github.com/klauspost/compress") - (synopsis "Go compression library") - (description "@code{compress} provides various compression algorithms.") - (license license:bsd-3))) - (define-public go-github-com-oneofone-xxhash (package (name "go-github-com-oneofone-xxhash") diff --git a/gnu/packages/uucp.scm b/gnu/packages/uucp.scm index 8f1759556e..8e47834fef 100644 --- a/gnu/packages/uucp.scm +++ b/gnu/packages/uucp.scm @@ -20,6 +20,7 @@ (define-module (gnu packages uucp) #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) + #:use-module (gnu packages golang-compression) #:use-module (gnu packages golang-crypto) #:use-module (gnu packages golang-web) #:use-module (gnu packages texinfo) -- cgit v1.2.3 From 8af7c33818b241464f5968af3c1f06e42ae7290c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 10 Feb 2024 22:27:29 +0000 Subject: gnu: go-github-com-andybalholm-brotli: Move to golang-compression. * gnu/packages/golang.scm (go-github-com-andybalholm-brotli): Move from here ... * gnu/packages/golang-compression.scm: ... to here. Change-Id: I820b0211b1fe4d90643e82fc32a99d8e8b6a9b0f --- gnu/packages/golang-compression.scm | 27 +++++++++++++++++++++++++++ gnu/packages/golang.scm | 26 -------------------------- 2 files changed, 27 insertions(+), 26 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang-compression.scm b/gnu/packages/golang-compression.scm index 5aacc34a66..6a556daa25 100644 --- a/gnu/packages/golang-compression.scm +++ b/gnu/packages/golang-compression.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2017 Leo Famulari ;;; Copyright © 2021 Arun Isaac ;;; Copyright © 2021 Efraim Flashner +;;; Copyright © 2022 Sharlatan Hellseher ;;; ;;; This file is part of GNU Guix. ;;; @@ -33,6 +34,32 @@ (define-module (gnu packages golang-compression) ;;; ;;; Code: +(define-public go-github-com-andybalholm-brotli + (package + (name "go-github-com-andybalholm-brotli") + (version "1.0.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/andybalholm/brotli") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1zvmj7gbnkq9xwv1bvcxk9acxl06y902148qwbd2kqwgs52wy2c0")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/andybalholm/brotli")) + (home-page "https://github.com/andybalholm/brotli") + (synopsis "Pure Go Brotli encoder and decoder") + (description + "This package is a brotli compressor and decompressor implemented in Go. +It was translated from the reference implementation +(@url{https://github.com/google/brotli,https://github.com/google/brotli}) with +the @code{c2go} tool at +@url{https://github.com/andybalholm/c2go,https://github.com/andybalholm/c2go}.") + (license license:expat))) + (define-public go-github-com-golang-snappy (package (name "go-github-com-golang-snappy") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 69205badbe..184d658569 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3722,32 +3722,6 @@ (define-public go-github-com-google-cadvisor containers.") (license license:asl2.0)))) -(define-public go-github-com-andybalholm-brotli - (package - (name "go-github-com-andybalholm-brotli") - (version "1.0.4") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/andybalholm/brotli") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1zvmj7gbnkq9xwv1bvcxk9acxl06y902148qwbd2kqwgs52wy2c0")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/andybalholm/brotli")) - (home-page "https://github.com/andybalholm/brotli") - (synopsis "Pure Go Brotli encoder and decoder") - (description - "This package is a brotli compressor and decompressor implemented in Go. -It was translated from the reference implementation -(@url{https://github.com/google/brotli,https://github.com/google/brotli}) with -the @code{c2go} tool at -@url{https://github.com/andybalholm/c2go,https://github.com/andybalholm/c2go}.") - (license license:expat))) - (define-public go-github-com-jonboulle-clockwork (let ((commit "e3653ace2d63753697e0e5b07b9393971c0bba9d") (revision "0")) -- cgit v1.2.3 From c185c51e1483af09df7010ea01a212968cbed9b4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 10 Feb 2024 22:32:10 +0000 Subject: gnu: go-github.com-ulikunitz-xz: Move to golang-compression. * gnu/packages/golang.scm (go-github.com-ulikunitz-xz): Move from here ... * gnu/packages/golang-compression.scm: ... to here. * gnu/packages/admin.scm: Add (gnu packages golang-compression) module. * gnu/packages/bioinformatics.scm: As above. Change-Id: I1901e67ac4336efd356085332572b3f09de90f7a --- gnu/packages/admin.scm | 1 + gnu/packages/bioinformatics.scm | 1 + gnu/packages/golang-compression.scm | 23 +++++++++++++++++++++++ gnu/packages/golang.scm | 22 ---------------------- 4 files changed, 25 insertions(+), 22 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index c595e1270f..11f69e57a4 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -131,6 +131,7 @@ (define-module (gnu packages admin) #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) + #:use-module (gnu packages golang-compression) #:use-module (gnu packages groff) #:use-module (gnu packages gtk) #:use-module (gnu packages guile) diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index 08683bc8e9..bcfe3c2656 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -95,6 +95,7 @@ (define-module (gnu packages bioinformatics) #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) + #:use-module (gnu packages golang-compression) #:use-module (gnu packages glib) #:use-module (gnu packages graph) #:use-module (gnu packages graphics) diff --git a/gnu/packages/golang-compression.scm b/gnu/packages/golang-compression.scm index 6a556daa25..568fdd12b9 100644 --- a/gnu/packages/golang-compression.scm +++ b/gnu/packages/golang-compression.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2017 Leo Famulari +;;; Copyright © 2020 Danny Milosavljevic ;;; Copyright © 2021 Arun Isaac ;;; Copyright © 2021 Efraim Flashner ;;; Copyright © 2022 Sharlatan Hellseher @@ -114,6 +115,28 @@ (define-public go-github-com-klauspost-compress (description "@code{compress} provides various compression algorithms.") (license license:bsd-3))) +(define-public go-github.com-ulikunitz-xz + (package + (name "go-github.com-ulikunitz-xz") + (version "0.5.8") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ulikunitz/xz.git") + (commit (string-append "v" version)))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 "1xnsymi5fmmm734bi4c6z57p5cvnyxlpi29yxs4v21w5k763aypd")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/ulikunitz/xz")) + (home-page "https://github.com/ulikunitz/xz") + (synopsis "Read and write xz compressed streams in Go") + (description "This package provides a library to read and write xz +compressed streams in Go.") + (license license:bsd-3))) + ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 184d658569..68e0c8eb24 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -8989,28 +8989,6 @@ (define-public go-github-com-tekwizely-go-parsing parsers, and related tools.") (license license:expat)))) -(define-public go-github.com-ulikunitz-xz - (package - (name "go-github.com-ulikunitz-xz") - (version "0.5.8") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/ulikunitz/xz.git") - (commit (string-append "v" version)))) - (file-name (string-append name "-" version "-checkout")) - (sha256 - (base32 - "1xnsymi5fmmm734bi4c6z57p5cvnyxlpi29yxs4v21w5k763aypd")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/ulikunitz/xz")) - (synopsis "Read and write xz compressed streams in Go") - (description "This package provides a library to read and write xz -compressed streams in Go.") - (home-page "https://github.com/ulikunitz/xz") - (license license:bsd-3))) - (define-public go-github-com-songmu-gitconfig (package (name "go-github-com-songmu-gitconfig") -- cgit v1.2.3