2024-02-05 18:30:31 +01:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2024-07-21 13:52:32 +02:00
|
|
|
|
;;; Copyright © 2018, 2019, 2020 Leo Famulari <leo@famulari.name>
|
2024-02-10 22:14:55 +01:00
|
|
|
|
;;; Copyright © 2019 Brian Leung <bkleung89@gmail.com>
|
2024-02-10 18:00:55 +01:00
|
|
|
|
;;; Copyright © 2020 Danny Milosavljevic <dannym@scratchpost.org>
|
2024-02-10 18:23:32 +01:00
|
|
|
|
;;; Copyright © 2020 HiPhish <hiphish@posteo.de>
|
2024-02-10 22:25:12 +01:00
|
|
|
|
;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com>
|
2024-02-10 17:42:16 +01:00
|
|
|
|
;;; Copyright © 2020 Ryan Prior <rprior@protonmail.com>
|
2024-02-10 18:00:55 +01:00
|
|
|
|
;;; Copyright © 2020 Vagrant Cascadian <vagrant@debian.org>
|
2024-07-20 01:19:46 +02:00
|
|
|
|
;;; Copyright © 2020, 2023, 2024 Efraim Flashner <efraim@flashner.co.il>
|
2024-02-10 18:34:47 +01:00
|
|
|
|
;;; Copyright © 2021 Arun Isaac <arunisaac@systemreboot.net>
|
2024-02-10 17:29:50 +01:00
|
|
|
|
;;; Copyright © 2021 Ludovic Courtès <ludo@gnu.org>
|
2024-02-10 22:39:59 +01:00
|
|
|
|
;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
|
2024-02-10 17:29:50 +01:00
|
|
|
|
;;; Copyright © 2021 hackeryarn <artemchernyak@gmail.com>
|
2024-07-21 13:05:58 +02:00
|
|
|
|
;;; Copyright © 2022 (unmatched-parenthesis <paren@disroot.org>
|
2024-02-05 21:57:31 +01:00
|
|
|
|
;;; Copyright © 2023 Artyom V. Poptsov <poptsov.artyom@gmail.com>
|
|
|
|
|
;;; Copyright © 2023 Felix Lechner <felix.lechner@lease-up.com>
|
2024-02-10 17:24:01 +01:00
|
|
|
|
;;; Copyright © 2023 Katherine Cox-Buday <cox.katherine.e@gmail.com>
|
2024-02-10 18:34:47 +01:00
|
|
|
|
;;; Copyright © 2023 Nicolas Graves <ngraves@ngraves.fr>
|
2024-02-10 18:00:55 +01:00
|
|
|
|
;;; Copyright © 2023 Timo Wilken <guix@twilken.net>
|
2024-07-21 13:05:58 +02:00
|
|
|
|
;;; Copyright © 2024 Hilton Chain <hako@ultrarare.space>
|
2024-09-07 17:52:56 +02:00
|
|
|
|
;;; Copyright © 2024 Sharlatan Hellseher <sharlatanus@gmail.com>
|
2024-02-17 18:38:53 +01:00
|
|
|
|
;;; Copyright © 2024 Troy Figiel <troy@troyfigiel.com>
|
2024-02-05 18:30:31 +01:00
|
|
|
|
;;;
|
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
|
;;; your option) any later version.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
|
;;;
|
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
(define-module (gnu packages golang-build)
|
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
|
#:use-module (guix build-system go)
|
|
|
|
|
#:use-module (guix gexp)
|
|
|
|
|
#:use-module (guix git-download)
|
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix utils)
|
2024-07-12 17:03:55 +02:00
|
|
|
|
#:use-module (gnu packages)
|
|
|
|
|
#:use-module (gnu packages gcc))
|
2024-02-05 18:30:31 +01:00
|
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
|
;;;
|
|
|
|
|
;;; Modules (libraries) which are part of the Golang project but outside the
|
|
|
|
|
;;; main Golang tree, see <https://pkg.go.dev/golang.org/x>
|
|
|
|
|
;;;
|
|
|
|
|
;;; Since they are bound to be relied on by many, their dependencies should be
|
|
|
|
|
;;; kept minimal, and this module should not depend on other modules
|
|
|
|
|
;;; containing Golang packages.
|
|
|
|
|
;;;
|
|
|
|
|
;;; Please: Try to add new module packages in alphabetic order.
|
|
|
|
|
;;;
|
|
|
|
|
;;; Code:
|
|
|
|
|
|
2024-09-07 17:52:56 +02:00
|
|
|
|
(define-public go-github-com-golang-glog
|
|
|
|
|
(package
|
|
|
|
|
(name "go-github-com-golang-glog")
|
|
|
|
|
(version "1.2.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/golang/glog")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "1a9ybpgp6grlpbhg2559sh54pxc9qfkhr4zvylw8qv1bny8c90q0"))))
|
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
#:import-path "github.com/golang/glog"))
|
|
|
|
|
(home-page "https://github.com/golang/glog")
|
|
|
|
|
(synopsis "Leveled execution logs for Golang")
|
|
|
|
|
(description
|
|
|
|
|
"This package implements logging analogous to C++ package
|
|
|
|
|
@url{https://github.com/google/glog,glog} INFO/ERROR/V setup. It provides
|
|
|
|
|
functions that have a name matched by regex:.")
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
2024-07-21 13:52:32 +02:00
|
|
|
|
(define-public go-github-com-golang-protobuf
|
|
|
|
|
(package
|
|
|
|
|
(name "go-github-com-golang-protobuf")
|
2024-09-12 23:45:08 +02:00
|
|
|
|
(version "1.5.4")
|
2024-07-21 13:52:32 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/golang/protobuf")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
2024-09-12 23:45:08 +02:00
|
|
|
|
(base32 "1bk7sa9ymi87hd2fv9jamxnxb3qjriamf2nsm8avp6ka37mrkz01"))))
|
2024-07-21 13:52:32 +02:00
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
#:import-path "github.com/golang/protobuf"
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
;; XXX: Workaround for go-build-system's lack of Go modules
|
|
|
|
|
;; support.
|
|
|
|
|
(delete 'build)
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
|
|
|
|
(when tests?
|
|
|
|
|
(with-directory-excursion (string-append "src/" import-path)
|
|
|
|
|
(invoke "go" "test" "-v" "./..."))))))))
|
2024-09-12 23:45:08 +02:00
|
|
|
|
(native-inputs
|
|
|
|
|
(list go-github-com-google-go-cmp))
|
2024-07-21 13:52:32 +02:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
(list go-google-golang-org-protobuf))
|
|
|
|
|
(home-page "https://github.com/golang/protobuf")
|
|
|
|
|
(synopsis "Go support for Protocol Buffers")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides Go support for the Protocol Buffers data
|
|
|
|
|
serialization format.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
2024-09-13 13:00:39 +02:00
|
|
|
|
(define-public go-github-com-google-btree
|
|
|
|
|
(package
|
|
|
|
|
(name "go-github-com-google-btree")
|
|
|
|
|
(version "1.1.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/google/btree")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "1k3jfj24sp4qk494wxj055vf5fjwskiydscy4a42s5jiwgcjr9gz"))))
|
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
#:import-path "github.com/google/btree"))
|
|
|
|
|
(home-page "https://github.com/google/btree")
|
|
|
|
|
(synopsis "Simple, ordered, in-memory data structure for Go programs")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides an in-memory B-Tree implementation for Go, useful
|
|
|
|
|
as an ordered, mutable data structure.")
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
2024-09-13 11:11:12 +02:00
|
|
|
|
(define-public go-github-com-google-go-cmdtest
|
|
|
|
|
(package
|
|
|
|
|
(name "go-github-com-google-go-cmdtest")
|
|
|
|
|
(version "0.4.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/google/go-cmdtest")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0zkghc60ymxmg19j90r6j7clq3xifh5m9kg1bgr4zpr5sv148x72"))))
|
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
#:import-path "github.com/google/go-cmdtest"))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
(list go-github-com-google-renameio go-github-com-google-go-cmp))
|
|
|
|
|
(home-page "https://github.com/google/go-cmdtest")
|
|
|
|
|
(synopsis "Testing for your CLI")
|
|
|
|
|
(description
|
|
|
|
|
"The cmdtest package simplifies testing of command-line interfaces. It
|
|
|
|
|
provides a simple, cross-platform, shell-like language to express command
|
|
|
|
|
execution. It can compare actual output with the expected output, and can
|
|
|
|
|
also update a file with new \"golden\" output that is deemed correct.")
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
2024-07-20 01:19:46 +02:00
|
|
|
|
(define-public go-github-com-google-go-cmp
|
|
|
|
|
(package
|
|
|
|
|
(name "go-github-com-google-go-cmp")
|
|
|
|
|
(version "0.6.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/google/go-cmp")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "1n1j4hi50bl05pyys4i7y417k9g6k1blslj27z327qny7kkdl2ma"))))
|
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
#:import-path "github.com/google/go-cmp/cmp"
|
|
|
|
|
#:unpack-path "github.com/google/go-cmp"
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key tests? import-path inputs #:allow-other-keys)
|
|
|
|
|
(when tests?
|
|
|
|
|
;; The tests fail when run with gccgo.
|
|
|
|
|
(let ((gccgo? (false-if-exception
|
|
|
|
|
(search-input-file inputs "/bin/gccgo"))))
|
|
|
|
|
(if gccgo?
|
|
|
|
|
(format #t "skipping tests with gccgo compiler~%")
|
|
|
|
|
;; XXX: Workaround for go-build-system's lack of Go
|
|
|
|
|
;; modules support.
|
|
|
|
|
(with-directory-excursion (string-append "src/" import-path)
|
|
|
|
|
(invoke "go" "test" "-v" "./..."))))))))))
|
|
|
|
|
(synopsis "Determine equality of values in Go")
|
|
|
|
|
(home-page "https://github.com/google/go-cmp")
|
|
|
|
|
(description
|
|
|
|
|
"This package is intended to be a more powerful and safer
|
|
|
|
|
alternative to @code{reflect.DeepEqual} for comparing whether two values are
|
|
|
|
|
semantically equal.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
2024-09-13 11:08:07 +02:00
|
|
|
|
(define-public go-github-com-google-renameio
|
|
|
|
|
(package
|
|
|
|
|
(name "go-github-com-google-renameio")
|
|
|
|
|
(version "1.0.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/google/renameio")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "1qn84nra9nxqyqg4i496b6ijbhnxvx66hdndwl7qh7r6q8lz2ba5"))))
|
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
#:import-path "github.com/google/renameio"))
|
|
|
|
|
(home-page "https://github.com/google/renameio/")
|
|
|
|
|
(synopsis "Atomically create or replace a file or symbolic link")
|
|
|
|
|
(description
|
|
|
|
|
"@code{renameio} Go package provides a way to atomically create or
|
|
|
|
|
replace a file or symbolic link.")
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
|
|
|
(define-public go-github-com-google-renameio-v2
|
|
|
|
|
(package/inherit go-github-com-google-renameio
|
|
|
|
|
(name "go-github-com-google-renameio-v2")
|
|
|
|
|
(version "2.0.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/google/renameio")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "13vc7p43zz5pmgli4k18b15khxpca1zd8v1ga0ryq7ddyz55fg7i"))))
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
#:import-path "github.com/google/renameio/v2"))))
|
|
|
|
|
|
2024-09-13 12:56:16 +02:00
|
|
|
|
(define-public go-github-com-google-uuid
|
|
|
|
|
(package
|
|
|
|
|
(name "go-github-com-google-uuid")
|
|
|
|
|
(version "1.6.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/google/uuid")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "131d01minir79dq6d4jq55018343yidl5cs2bfhynx1klnr7ssam"))))
|
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
#:import-path "github.com/google/uuid"))
|
|
|
|
|
(home-page "https://github.com/google/uuid/")
|
|
|
|
|
(synopsis "Generate and inspect UUIDs based on RFC 4122 and DCE 1.1")
|
|
|
|
|
(description
|
|
|
|
|
"The uuid package generates and inspects UUIDs based on RFC 4122 and DCE
|
|
|
|
|
1.1: Authentication and Security Services.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
2024-02-10 22:25:12 +01:00
|
|
|
|
(define-public go-github-com-yuin-goldmark
|
|
|
|
|
(package
|
|
|
|
|
(name "go-github-com-yuin-goldmark")
|
2024-07-02 23:00:14 +02:00
|
|
|
|
(version "1.7.4")
|
2024-02-10 22:25:12 +01:00
|
|
|
|
(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
|
2024-07-02 23:00:14 +02:00
|
|
|
|
(base32 "01807xs8501cyhkrrgg6k9ghl9jrw6dp0ry9knygck48canckxs2"))))
|
2024-02-10 22:25:12 +01:00
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
2024-07-03 10:18:44 +02:00
|
|
|
|
(list
|
|
|
|
|
#:import-path "github.com/yuin/goldmark"
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
;; XXX: Workaround for go-build-system's lack of Go modules
|
|
|
|
|
;; support.
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
|
|
|
|
(when tests?
|
2024-07-21 16:17:17 +02:00
|
|
|
|
;; We need to extend the timeout on some architectures.
|
|
|
|
|
;; 64 is the default in extra_test.go.
|
|
|
|
|
(setenv "GOLDMARK_TEST_TIMEOUT_MULTIPLIER"
|
|
|
|
|
(number->string (* 64 5)))
|
2024-07-03 10:18:44 +02:00
|
|
|
|
(with-directory-excursion (string-append "src/" import-path)
|
|
|
|
|
(invoke "go" "test" "-v" "./..."))))))))
|
2024-02-10 22:25:12 +01:00
|
|
|
|
(home-page "https://github.com/yuin/goldmark/")
|
|
|
|
|
(synopsis "Markdown parser")
|
2024-07-03 10:18:44 +02:00
|
|
|
|
(description
|
|
|
|
|
"This package provides a markdown parser.")
|
2024-02-10 22:25:12 +01:00
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
2024-07-13 00:23:39 +02:00
|
|
|
|
(define-public go-github-com-yuin-goldmark-emoji
|
|
|
|
|
(package
|
|
|
|
|
(name "go-github-com-yuin-goldmark-emoji")
|
|
|
|
|
(version "1.0.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/yuin/goldmark-emoji")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "1mx8rkxd3ksvgi41jvf365x9mf00sxiqq4wm75x4sasd2lgcbrl4"))))
|
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
#:import-path "github.com/yuin/goldmark-emoji"))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
(list go-github-com-yuin-goldmark))
|
|
|
|
|
(home-page "https://github.com/yuin/goldmark-emoji")
|
|
|
|
|
(synopsis "Emoji extension for the goldmark markdown parser")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides an emoji is a extension for the
|
|
|
|
|
@url{http://github.com/yuin/goldmark,goldmark}.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
2024-02-10 22:39:59 +01:00
|
|
|
|
(define-public go-golang-org-x-crypto
|
|
|
|
|
(package
|
|
|
|
|
(name "go-golang-org-x-crypto")
|
2024-09-13 11:40:46 +02:00
|
|
|
|
(version "0.27.0")
|
2024-02-10 22:39:59 +01:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://go.googlesource.com/crypto")
|
|
|
|
|
(commit (string-append "v" version))))
|
2024-07-12 14:47:31 +02:00
|
|
|
|
(file-name (git-file-name name version))
|
2024-02-10 22:39:59 +01:00
|
|
|
|
(sha256
|
2024-09-13 11:40:46 +02:00
|
|
|
|
(base32 "1b5jgzz7fn1br2vw6m90z902i5r14sp0wj8s0lvlbm79xvi38x19"))))
|
2024-02-10 22:39:59 +01:00
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
2024-07-12 15:49:16 +02:00
|
|
|
|
(list
|
|
|
|
|
#:import-path "golang.org/x/crypto"
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'remove-test-files
|
|
|
|
|
(lambda* (#:key import-path #:allow-other-keys)
|
|
|
|
|
(with-directory-excursion (string-append "src/" import-path)
|
|
|
|
|
(for-each delete-file
|
|
|
|
|
(list
|
|
|
|
|
;; Network access requried: go mod download -json
|
|
|
|
|
;; github.com/google/wycheproof@v0.0.0-20191219022705-2196000605e4.
|
|
|
|
|
"internal/wycheproof/aead_test.go"
|
|
|
|
|
"internal/wycheproof/aes_cbc_test.go"
|
|
|
|
|
"internal/wycheproof/dsa_test.go"
|
|
|
|
|
"internal/wycheproof/ecdh_stdlib_test.go"
|
|
|
|
|
"internal/wycheproof/ecdh_test.go"
|
|
|
|
|
"internal/wycheproof/ecdsa_test.go"
|
|
|
|
|
"internal/wycheproof/eddsa_test.go"
|
|
|
|
|
"internal/wycheproof/hkdf_test.go"
|
|
|
|
|
"internal/wycheproof/hmac_test.go"
|
|
|
|
|
"internal/wycheproof/rsa_oaep_decrypt_test.go"
|
|
|
|
|
"internal/wycheproof/rsa_pss_test.go"
|
|
|
|
|
"internal/wycheproof/rsa_signature_test.go"
|
|
|
|
|
"internal/wycheproof/wycheproof_test.go")))))
|
|
|
|
|
;; XXX: Workaround for go-build-system's lack of Go modules
|
|
|
|
|
;; support.
|
|
|
|
|
(delete 'build)
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
|
|
|
|
(when tests?
|
|
|
|
|
(with-directory-excursion (string-append "src/" import-path)
|
|
|
|
|
(invoke "go" "test" "-v"
|
|
|
|
|
;; acme - cycle with go-golang-org-x-net
|
|
|
|
|
"./argon2/..."
|
|
|
|
|
"./bcrypt/..."
|
|
|
|
|
"./blake2b/..."
|
|
|
|
|
"./blake2s/..."
|
|
|
|
|
"./blowfish/..."
|
|
|
|
|
"./bn256/..."
|
|
|
|
|
"./cast5/..."
|
|
|
|
|
"./chacha20/..."
|
|
|
|
|
"./chacha20poly1305/..."
|
|
|
|
|
"./cryptobyte/..."
|
|
|
|
|
"./curve25519/..."
|
|
|
|
|
"./ed25519/..."
|
|
|
|
|
"./hkdf/..."
|
|
|
|
|
"./internal/..."
|
|
|
|
|
"./md4/..."
|
|
|
|
|
"./nacl/..."
|
|
|
|
|
"./ocsp/..."
|
|
|
|
|
"./openpgp/..."
|
|
|
|
|
"./otr/..."
|
|
|
|
|
"./pbkdf2/..."
|
|
|
|
|
"./pkcs12/..."
|
|
|
|
|
"./poly1305/..."
|
|
|
|
|
"./ripemd160/..."
|
|
|
|
|
"./salsa20/..."
|
|
|
|
|
"./scrypt/..."
|
|
|
|
|
"./sha3/..."
|
|
|
|
|
"./ssh/..."
|
|
|
|
|
"./tea/..."
|
|
|
|
|
"./twofish/..."
|
|
|
|
|
"./x509roots/..."
|
|
|
|
|
"./xtea/..."
|
|
|
|
|
"./xts/..."))))))))
|
2024-02-10 22:39:59 +01:00
|
|
|
|
(propagated-inputs
|
2024-07-12 14:47:31 +02:00
|
|
|
|
(list go-golang-org-x-sys go-golang-org-x-term))
|
2024-02-10 22:39:59 +01:00
|
|
|
|
(home-page "https://go.googlesource.com/crypto/")
|
|
|
|
|
(synopsis "Supplementary cryptographic libraries in Go")
|
2024-07-12 15:49:16 +02:00
|
|
|
|
(description
|
|
|
|
|
"This package provides supplementary cryptographic libraries for the Go
|
|
|
|
|
language.")
|
2024-02-10 22:39:59 +01:00
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
2024-02-10 17:24:01 +01:00
|
|
|
|
(define-public go-golang-org-x-exp
|
|
|
|
|
(package
|
|
|
|
|
(name "go-golang-org-x-exp")
|
2024-08-11 14:11:40 +02:00
|
|
|
|
(version "0.0.0-20240808152545-0cdaa3abc0fa")
|
2024-02-10 17:24:01 +01:00
|
|
|
|
(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
|
2024-08-11 14:11:40 +02:00
|
|
|
|
(base32 "1sa03fm57326qnchvfza7am7jjlz32l1yyqbdvy6mknw5bmp8a71"))
|
2024-07-03 13:59:09 +02:00
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
2024-07-20 09:17:09 +02:00
|
|
|
|
#~(begin
|
|
|
|
|
;; Submodules with their own go.mod files and packed as separated
|
|
|
|
|
;; packages:
|
|
|
|
|
;;
|
|
|
|
|
;; - golang.org/x/exp/event
|
|
|
|
|
;; - golang.org/x/exp/jsonrpc2
|
|
|
|
|
;; - golang.org/x/exp/shiny
|
|
|
|
|
;; - golang.org/x/exp/sumbdb
|
|
|
|
|
;; - golang.org/x/exp/typeparams
|
|
|
|
|
(for-each delete-file-recursively
|
|
|
|
|
(list "event" "jsonrpc2" "shiny" "sumdb" "typeparams"))))))
|
2024-02-10 17:24:01 +01:00
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
2024-07-20 09:17:09 +02:00
|
|
|
|
(list
|
|
|
|
|
#:import-path "golang.org/x/exp"
|
2024-07-20 09:34:26 +02:00
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'remove-failing-tests
|
|
|
|
|
(lambda* (#:key import-path #:allow-other-keys)
|
|
|
|
|
(with-directory-excursion (string-append "src/" import-path)
|
|
|
|
|
;; Benchmark requires other modules to pass tests, delete them.
|
|
|
|
|
(delete-file-recursively "slog/benchmarks")
|
|
|
|
|
(substitute* (find-files "." "\\_test.go$")
|
|
|
|
|
;; Disable failing tests: error running `go mod init`: go:
|
|
|
|
|
;; modules disabled by GO111MODULE=off; see 'go help modules'
|
|
|
|
|
;; , exit status 1
|
|
|
|
|
(("TestFailure") "OffTestFailure")
|
|
|
|
|
(("TestRelease_gitRepo_uncommittedChanges")
|
|
|
|
|
"OffTestRelease_gitRepo_uncommittedChanges")))))
|
|
|
|
|
;; XXX: Workaround for go-build-system's lack of Go modules
|
|
|
|
|
;; support.
|
|
|
|
|
(delete 'build)
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
|
|
|
|
(when tests?
|
|
|
|
|
(with-directory-excursion (string-append "src/" import-path)
|
|
|
|
|
(invoke "go" "test" "-v" "./..."))))))))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
(list go-github-com-google-go-cmp
|
|
|
|
|
go-golang-org-x-mod
|
|
|
|
|
go-golang-org-x-tools))
|
2024-02-10 17:24:01 +01:00
|
|
|
|
(home-page "https://golang.org/x/exp")
|
|
|
|
|
(synopsis "Experimental and deprecated Go packages")
|
2024-07-20 09:17:09 +02:00
|
|
|
|
(description
|
|
|
|
|
"This subrepository holds experimental and deprecated (in the @code{old}
|
|
|
|
|
directory) packages.")
|
2024-02-10 17:24:01 +01:00
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
2024-07-13 15:43:53 +02:00
|
|
|
|
(define-public go-golang-org-x-exp-typeparams
|
|
|
|
|
(package
|
|
|
|
|
(name "go-golang-org-x-exp-typeparams")
|
|
|
|
|
(version "0.0.0-20240707233637-46b078467d37")
|
|
|
|
|
(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 "17pwikql9x1bm5ci0kk4mlad7smkph0cgq1pi2b43gnhjz8m96l0"))))
|
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
#:import-path "golang.org/x/exp/typeparams"
|
|
|
|
|
#:unpack-path "golang.org/x/exp"))
|
|
|
|
|
(home-page "https://pkg.go.dev/golang.org/x/exp/typeparams")
|
|
|
|
|
(synopsis "Golang common utilities for writing tools")
|
|
|
|
|
(description
|
|
|
|
|
"Package typeparams contains common utilities for writing tools that
|
|
|
|
|
interact with generic Go code, as introduced with Go 1.18.
|
|
|
|
|
|
|
|
|
|
Many of the types and functions in this package are proxies for the new APIs
|
|
|
|
|
introduced in the standard library with Go 1.18. For example, the
|
|
|
|
|
typeparams.Union type is an alias for @code{go/types.Union}, and the
|
|
|
|
|
@code{ForTypeSpec} function returns the value of the
|
|
|
|
|
@code{go/ast.TypeSpec.TypeParams} field. At Go versions older than 1.18 these
|
|
|
|
|
helpers are implemented as stubs, allowing users of this package to write code
|
|
|
|
|
that handles generic constructs inline,even if the Go version being used to
|
|
|
|
|
compile does not support generics.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
2024-02-10 22:32:16 +01:00
|
|
|
|
(define-public go-golang-org-x-image
|
2024-07-03 21:21:23 +02:00
|
|
|
|
(package
|
|
|
|
|
(name "go-golang-org-x-image")
|
2024-09-15 22:20:46 +02:00
|
|
|
|
(version "0.20.0")
|
2024-07-03 21:21:23 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://go.googlesource.com/image")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
2024-09-15 22:20:46 +02:00
|
|
|
|
(base32 "0bn85bqpwkznny3lrnlfk05s2p917rbq0kplz36xyv490a74pi7l"))))
|
2024-07-03 21:22:15 +02:00
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
2024-07-03 22:58:53 +02:00
|
|
|
|
(list
|
|
|
|
|
#:import-path "golang.org/x/image"
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
;; XXX: go-build-system can't install/build submodules.
|
|
|
|
|
(delete 'build)
|
|
|
|
|
(add-after 'unpack 'remove-examples
|
|
|
|
|
(lambda* (#:key import-path #:allow-other-keys)
|
|
|
|
|
(delete-file-recursively
|
|
|
|
|
(string-append "src/" import-path "/example"))))
|
|
|
|
|
(add-before 'check 'remove-failing-tests
|
|
|
|
|
(lambda* (#:key import-path #:allow-other-keys)
|
|
|
|
|
(with-directory-excursion (string-append "src/" import-path)
|
|
|
|
|
(for-each delete-file
|
|
|
|
|
;; tiff/reader_test.go:557:14: too many errors
|
|
|
|
|
(list "tiff/reader_test.go"
|
|
|
|
|
"tiff/writer_test.go")))))
|
|
|
|
|
;; XXX: Workaround for go-build-system's lack of Go modules support.
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
|
|
|
|
(when tests?
|
|
|
|
|
(with-directory-excursion (string-append "src/" import-path)
|
|
|
|
|
(invoke "go" "test" "-v" "./..."))))))))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
(list go-golang-org-x-text))
|
|
|
|
|
(home-page "https://pkg.go.dev/golang.org/x/image")
|
2024-07-03 21:22:15 +02:00
|
|
|
|
(synopsis "Supplemental Go image libraries")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides supplemental Go libraries for image processing.")
|
|
|
|
|
(license license:bsd-3)))
|
2024-02-10 22:32:16 +01:00
|
|
|
|
|
2024-02-10 17:29:50 +01:00
|
|
|
|
(define-public go-golang-org-x-mod
|
2024-07-12 14:13:55 +02:00
|
|
|
|
(package
|
|
|
|
|
(name "go-golang-org-x-mod")
|
2024-09-15 22:19:50 +02:00
|
|
|
|
(version "0.21.0")
|
2024-07-12 14:13:55 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
2024-07-12 14:31:58 +02:00
|
|
|
|
(url "https://go.googlesource.com/mod")
|
2024-07-12 14:13:55 +02:00
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
2024-09-15 22:19:50 +02:00
|
|
|
|
(base32 "1rk4vbdrdmiaacx50a1q31hydidwl9rnlcl7rim3f535vyw01fxk"))))
|
2024-07-12 14:13:55 +02:00
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
2024-07-12 14:31:58 +02:00
|
|
|
|
(list
|
|
|
|
|
#:import-path "golang.org/x/mod"
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'remove-test-files
|
|
|
|
|
(lambda* (#:key import-path #:allow-other-keys)
|
|
|
|
|
(with-directory-excursion (string-append "src/" import-path)
|
|
|
|
|
(for-each delete-file
|
|
|
|
|
(list
|
|
|
|
|
;; Break cycle: go-golang-org-x-mod ->
|
|
|
|
|
;; go-golang-org-x-tools -> go-golang-org-x-mod.
|
|
|
|
|
"zip/zip_test.go"
|
|
|
|
|
;; Trying to access
|
|
|
|
|
;; <http://ct.googleapis.com/logs/argon2020/ct/v1/get-sth>.
|
|
|
|
|
"sumdb/tlog/ct_test.go")))))
|
|
|
|
|
;; XXX: Workaround for go-build-system's lack of Go modules
|
|
|
|
|
;; support.
|
|
|
|
|
(delete 'build)
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
|
|
|
|
(when tests?
|
|
|
|
|
(with-directory-excursion (string-append "src/" import-path)
|
|
|
|
|
(invoke "go" "test" "-v" "./..."))))))))
|
2024-07-12 14:13:55 +02:00
|
|
|
|
(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
|
2024-02-10 17:29:50 +01:00
|
|
|
|
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.")
|
2024-07-12 14:13:55 +02:00
|
|
|
|
(license license:bsd-3)))
|
2024-02-10 17:29:50 +01:00
|
|
|
|
|
2024-02-05 21:57:31 +01:00
|
|
|
|
(define-public go-golang-org-x-net
|
2024-07-12 14:36:51 +02:00
|
|
|
|
(package
|
|
|
|
|
(name "go-golang-org-x-net")
|
2024-09-12 23:25:28 +02:00
|
|
|
|
(version "0.29.0")
|
2024-07-12 14:36:51 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://go.googlesource.com/net")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
2024-09-12 23:25:28 +02:00
|
|
|
|
(base32 "0scksgrrxyyy4ah2anh3n0qj0snpc63bqmhyw24q5lskzrsm2zvl"))))
|
2024-07-12 14:36:51 +02:00
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
#:import-path "golang.org/x/net"
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
2024-07-12 14:44:06 +02:00
|
|
|
|
;; XXX: Workaround for go-build-system's lack of Go modules
|
|
|
|
|
;; support.
|
|
|
|
|
(delete 'build)
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
|
|
|
|
(when tests?
|
|
|
|
|
(with-directory-excursion (string-append "src/" import-path)
|
|
|
|
|
(invoke "go" "test" "-v" "./..."))))))))
|
2024-07-12 14:36:51 +02:00
|
|
|
|
(propagated-inputs
|
2024-07-12 14:44:06 +02:00
|
|
|
|
(list go-golang-org-x-crypto
|
|
|
|
|
go-golang-org-x-sys
|
|
|
|
|
go-golang-org-x-term
|
|
|
|
|
go-golang-org-x-text))
|
2024-07-12 14:36:51 +02:00
|
|
|
|
(home-page "https://go.googlesource.com/net")
|
|
|
|
|
(synopsis "Go supplemental networking libraries")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides supplemental Go networking libraries.")
|
|
|
|
|
(license license:bsd-3)))
|
2024-02-05 21:57:31 +01:00
|
|
|
|
|
2024-02-10 18:23:32 +01:00
|
|
|
|
(define-public go-golang-org-x-sync
|
2024-06-20 09:10:30 +02:00
|
|
|
|
(package
|
|
|
|
|
(name "go-golang-org-x-sync")
|
2024-08-11 14:03:11 +02:00
|
|
|
|
(version "0.8.0")
|
2024-06-20 09:10:30 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://go.googlesource.com/sync")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
2024-08-11 14:03:11 +02:00
|
|
|
|
(base32 "1jssyq49g5z7dbhdb9bnzsb8gigvsy5f4aczbzn5paz07v9wbjxs"))))
|
2024-06-20 09:10:30 +02:00
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
#:import-path "golang.org/x/sync"
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
;; XXX: Workaround for go-build-system's lack of Go modules
|
|
|
|
|
;; support.
|
|
|
|
|
(delete 'build)
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
|
|
|
|
(when tests?
|
|
|
|
|
(with-directory-excursion (string-append "src/" import-path)
|
|
|
|
|
(invoke "go" "test" "-v" "./..."))))))))
|
|
|
|
|
(home-page "https://go.googlesource.com/sync/")
|
|
|
|
|
(synopsis "Additional Go concurrency primitives")
|
2024-06-20 10:24:13 +02:00
|
|
|
|
(description
|
|
|
|
|
"This package provides Go concurrency primitives in addition to the ones
|
|
|
|
|
provided by the language and @code{sync} and @code{sync/atomic} packages.
|
|
|
|
|
The package provides several Golang submodules:
|
|
|
|
|
@itemize
|
|
|
|
|
@item @code{errgroup} - synchronization, error propagation, and Context
|
|
|
|
|
cancelation for groups of goroutines working on subtasks of a common task
|
|
|
|
|
@item @code{semaphore} - a weighted semaphore implementation
|
|
|
|
|
@item @code{singleflight} - a duplicate function call suppression mechanism
|
|
|
|
|
@item @code{syncmap} - a concurrent map implementation
|
|
|
|
|
@end itemize")
|
2024-06-20 09:10:30 +02:00
|
|
|
|
(license license:bsd-3)))
|
2024-02-10 18:23:32 +01:00
|
|
|
|
|
2024-02-07 21:53:56 +01:00
|
|
|
|
(define-public go-golang-org-x-sys
|
2024-06-20 11:10:25 +02:00
|
|
|
|
(package
|
|
|
|
|
(name "go-golang-org-x-sys")
|
2024-09-13 14:45:06 +02:00
|
|
|
|
(version "0.25.0")
|
2024-06-20 11:10:25 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://go.googlesource.com/sys")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
2024-09-13 14:45:06 +02:00
|
|
|
|
(base32 "0hdysrba8imiifb4ksjgbhkzhk1mksm1g3fj59i3bas1zdc5lbgp"))))
|
2024-06-20 11:10:25 +02:00
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
#:import-path "golang.org/x/sys"
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
;; XXX: Workaround for go-build-system's lack of Go modules
|
|
|
|
|
;; support.
|
|
|
|
|
(delete 'build)
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
|
|
|
|
(when tests?
|
|
|
|
|
(with-directory-excursion (string-append "src/" import-path)
|
|
|
|
|
(invoke "go" "test" "-v" "./..."))))))))
|
|
|
|
|
(home-page "https://go.googlesource.com/sys")
|
|
|
|
|
(synopsis "Go support for low-level system interaction")
|
|
|
|
|
(description "This package provides supplemental libraries offering Go
|
2024-02-07 21:53:56 +01:00
|
|
|
|
support for low-level interaction with the operating system.")
|
2024-06-20 11:10:25 +02:00
|
|
|
|
(license license:bsd-3)))
|
2024-02-07 21:53:56 +01:00
|
|
|
|
|
2024-09-13 00:27:46 +02:00
|
|
|
|
(define-public go-golang-org-x-telemetry
|
|
|
|
|
(package
|
|
|
|
|
(name "go-golang-org-x-telemetry")
|
|
|
|
|
(version "0.0.0-20240912191618-22fe4a1e7b9c")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://go.googlesource.com/telemetry")
|
|
|
|
|
(commit (go-version->git-ref version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "05gvxiv0yqfclckm2ysavbfy1jpz8v71r2glrcvhjq8wzw90g9gz"))))
|
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
#:test-flags #~(list "-skip" "TestStart|TestConcurrentStart")
|
|
|
|
|
#:import-path "golang.org/x/telemetry"))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
(list go-golang-org-x-mod
|
|
|
|
|
go-golang-org-x-sync
|
|
|
|
|
go-golang-org-x-sys))
|
|
|
|
|
(home-page "https://go.googlesource.com/telemetry")
|
|
|
|
|
(synopsis "Go Telemetry")
|
|
|
|
|
(description
|
|
|
|
|
"This repository holds the Go Telemetry server code and libraries, used
|
|
|
|
|
for hosting @url{https://telemetry.go.dev,telemetry.go.dev} and instrumenting
|
|
|
|
|
Go toolchain programs with opt-in telemetry.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
2024-09-13 00:32:47 +02:00
|
|
|
|
(define-public go-golang-org-x-telemetry-config
|
|
|
|
|
(package
|
|
|
|
|
(name "go-golang-org-x-telemetry-config")
|
|
|
|
|
(version "0.31.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://go.googlesource.com/telemetry")
|
|
|
|
|
(commit (go-version->git-ref version
|
|
|
|
|
#:subdir "config"))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0b5f3kf58wam741m7vfalv4n47djn6whxr4lf9w1jpjgaa6kq3an"))))
|
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
#:import-path "golang.org/x/telemetry/config"
|
|
|
|
|
#:unpack-path "golang.org/x/telemetry"))
|
|
|
|
|
(home-page "https://golang.org/x/telemetry")
|
|
|
|
|
(synopsis "Subset of telemetry data for Golang telemetry")
|
|
|
|
|
(description
|
|
|
|
|
"The config package holds the config.json file defining the Go telemetry
|
|
|
|
|
upload configuration and contains no actual Go code, and exists only so the
|
|
|
|
|
config.json file can be served by module proxies.
|
|
|
|
|
|
|
|
|
|
An upload configuration specifies the set of values that are permitted in
|
|
|
|
|
telemetry uploads: GOOS, GOARCH, Go version, and per-program counters.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
2024-02-10 18:34:47 +01:00
|
|
|
|
(define-public go-golang-org-x-term
|
|
|
|
|
(package
|
|
|
|
|
(name "go-golang-org-x-term")
|
2024-09-15 22:21:44 +02:00
|
|
|
|
(version "0.24.0")
|
2024-02-10 18:34:47 +01:00
|
|
|
|
(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
|
2024-09-15 22:21:44 +02:00
|
|
|
|
(base32 "1sclnlbchqqlspm5l914xgs70yyjswarrrahkf8n44gkr2kbkw1x"))))
|
2024-02-10 18:34:47 +01:00
|
|
|
|
(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)))
|
|
|
|
|
|
2024-02-10 22:14:55 +01:00
|
|
|
|
(define-public go-golang-org-x-text
|
|
|
|
|
(package
|
|
|
|
|
(name "go-golang-org-x-text")
|
2024-09-15 22:19:00 +02:00
|
|
|
|
(version "0.18.0")
|
2024-02-10 22:14:55 +01:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://go.googlesource.com/text")
|
|
|
|
|
(commit (string-append "v" version))))
|
2024-07-12 16:03:34 +02:00
|
|
|
|
(file-name (git-file-name name version))
|
2024-02-10 22:14:55 +01:00
|
|
|
|
(sha256
|
2024-09-15 22:19:00 +02:00
|
|
|
|
(base32 "1vxx2s1y1dmhiiv4cayrwf3ls4lbq22xkhl6xw3ls8jizribl5s9"))))
|
2024-02-10 22:14:55 +01:00
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
2024-07-12 16:03:34 +02:00
|
|
|
|
(list
|
|
|
|
|
#:import-path "golang.org/x/text"
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
;; XXX: Workaround for go-build-system's lack of Go modules
|
|
|
|
|
;; support.
|
|
|
|
|
(delete 'build)
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
|
|
|
|
(when tests?
|
|
|
|
|
(with-directory-excursion (string-append "src/" import-path)
|
|
|
|
|
(invoke "go" "test" "-v"
|
|
|
|
|
"./cases/..."
|
|
|
|
|
;; cmd - cycle with go-golang-org-x-tools
|
|
|
|
|
"./collate/..."
|
|
|
|
|
"./currency/..."
|
|
|
|
|
"./date/..."
|
|
|
|
|
"./encoding/..."
|
|
|
|
|
"./feature/..."
|
|
|
|
|
"./internal/..."
|
|
|
|
|
"./language/..."
|
|
|
|
|
;; message - cycle with go-golang-org-x-tools
|
|
|
|
|
"./number/..."
|
|
|
|
|
"./runes/..."
|
|
|
|
|
"./search/..."
|
|
|
|
|
"./secure/..."
|
|
|
|
|
"./transform/..."
|
|
|
|
|
"./unicode/..."
|
|
|
|
|
"./width/..."))))))))
|
2024-02-10 22:14:55 +01:00
|
|
|
|
(home-page "https://go.googlesource.com/text")
|
|
|
|
|
(synopsis "Supplemental Go text processing libraries")
|
2024-07-12 16:03:34 +02:00
|
|
|
|
(description
|
|
|
|
|
"This package provides supplemental Go libraries for text
|
2024-02-10 22:14:55 +01:00
|
|
|
|
processing.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
2024-02-10 18:44:46 +01:00
|
|
|
|
(define-public go-golang-org-x-time
|
2024-07-12 16:09:29 +02:00
|
|
|
|
(package
|
|
|
|
|
(name "go-golang-org-x-time")
|
2024-08-09 21:26:59 +02:00
|
|
|
|
(version "0.6.0")
|
2024-07-12 16:09:29 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://go.googlesource.com/time")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
2024-08-09 21:26:59 +02:00
|
|
|
|
(base32 "14z7f1yx3r393f94yjv09mrsfaydq6da7pswv8wvk327mxa56vw1"))))
|
2024-07-12 16:09:29 +02:00
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
2024-07-12 16:10:47 +02:00
|
|
|
|
(list
|
|
|
|
|
#:import-path "golang.org/x/time"
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
;; XXX: Workaround for go-build-system's lack of Go modules
|
|
|
|
|
;; support.
|
|
|
|
|
(delete 'build)
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
|
|
|
|
(when tests?
|
|
|
|
|
(with-directory-excursion (string-append "src/" import-path)
|
|
|
|
|
(invoke "go" "test" "-v" "./..."))))))))
|
2024-07-12 16:09:29 +02:00
|
|
|
|
(home-page "https://godoc.org/golang.org/x/time/rate")
|
|
|
|
|
(synopsis "Supplemental Go time libraries")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides supplemental Go libraries related to
|
2024-02-10 18:44:46 +01:00
|
|
|
|
time.")
|
2024-07-12 16:09:29 +02:00
|
|
|
|
(license license:bsd-3)))
|
2024-02-10 18:44:46 +01:00
|
|
|
|
|
2024-02-10 22:28:17 +01:00
|
|
|
|
(define-public go-golang-org-x-tools
|
|
|
|
|
(package
|
|
|
|
|
(name "go-golang-org-x-tools")
|
2024-09-13 00:18:41 +02:00
|
|
|
|
(version "0.25.0")
|
2024-02-10 22:28:17 +01:00
|
|
|
|
(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
|
2024-09-13 00:18:41 +02:00
|
|
|
|
(base32 "12r0cwsq898vka7jkxwjv1s8y8z2gxzq8z15ssl37y85hhcadkl8"))
|
2024-02-10 22:28:17 +01:00
|
|
|
|
(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
|
2024-07-12 17:03:55 +02:00
|
|
|
|
(list
|
|
|
|
|
#:import-path "golang.org/x/tools"
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
;; XXX: Workaround for go-build-system's lack of Go modules
|
|
|
|
|
;; support.
|
|
|
|
|
(delete 'build)
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
|
|
|
|
(when tests?
|
|
|
|
|
(with-directory-excursion (string-append "src/" import-path)
|
|
|
|
|
(invoke "go" "test" "-v"
|
|
|
|
|
;; TODO: They contain final project executable builds,
|
|
|
|
|
;; would be packed separately.
|
|
|
|
|
;; - cmd
|
|
|
|
|
;; - godoc
|
|
|
|
|
|
|
|
|
|
;; FIXME: Figure out why they are failing:
|
2024-09-13 00:18:41 +02:00
|
|
|
|
;; "./go/analysis/..."
|
|
|
|
|
;; "./go/callgraph/..."
|
|
|
|
|
;; "./go/packages/..."
|
|
|
|
|
;; "./go/ssa/..."
|
2024-07-12 17:03:55 +02:00
|
|
|
|
;; "./internal/..."
|
|
|
|
|
;; "./present/..."
|
|
|
|
|
;; "./refactor/eg/..."
|
|
|
|
|
|
|
|
|
|
"./blog/..." ;
|
|
|
|
|
"./container/..."
|
|
|
|
|
"./copyright/..."
|
|
|
|
|
"./cover/..."
|
|
|
|
|
"./go/ast/..."
|
|
|
|
|
"./go/buildutil/..."
|
|
|
|
|
"./go/cfg/..."
|
|
|
|
|
"./go/expect/..."
|
|
|
|
|
"./go/gccgoexportdata/..."
|
|
|
|
|
"./go/gcexportdata/..."
|
|
|
|
|
"./go/internal/..."
|
|
|
|
|
"./go/loader/..."
|
|
|
|
|
"./go/types/..."
|
|
|
|
|
"./imports/..."
|
|
|
|
|
"./playground/..."
|
|
|
|
|
"./refactor/importgraph/..."
|
|
|
|
|
"./refactor/rename/..."
|
|
|
|
|
"./refactor/satisfy/..."
|
|
|
|
|
"./txtar/..."))))))))
|
|
|
|
|
(native-inputs
|
2024-09-13 00:18:41 +02:00
|
|
|
|
(list gccgo-14
|
|
|
|
|
go-github-com-google-go-cmp))
|
2024-02-10 22:28:17 +01:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
(list go-github-com-yuin-goldmark
|
|
|
|
|
go-golang-org-x-mod
|
|
|
|
|
go-golang-org-x-net
|
2024-07-12 17:03:55 +02:00
|
|
|
|
go-golang-org-x-sync))
|
2024-02-10 22:28:17 +01:00
|
|
|
|
(home-page "https://go.googlesource.com/tools/")
|
|
|
|
|
(synopsis "Tools that support the Go programming language")
|
2024-07-12 17:03:55 +02:00
|
|
|
|
(description
|
|
|
|
|
"This package provides miscellaneous tools that support the
|
2024-02-10 22:28:17 +01:00
|
|
|
|
Go programming language.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
2024-09-13 11:25:00 +02:00
|
|
|
|
(define-public go-golang-org-x-vuln
|
|
|
|
|
(package
|
|
|
|
|
(name "go-golang-org-x-vuln")
|
|
|
|
|
;; XXX: Newer version of govulncheck requires golang.org/x/telemetry,
|
|
|
|
|
;; which needs to be discussed if it may be included in Guix.
|
|
|
|
|
(version "1.1.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://go.googlesource.com/vuln")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0izm18r8ksx4n10an9nxyflc8cgr766qrwfmx5nbk702x80prln9"))))
|
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
#:import-path "golang.org/x/vuln"
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
;; XXX: Workaround for go-build-system's lack of Go modules support.
|
|
|
|
|
(delete 'build)
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
|
|
|
|
(when tests?
|
|
|
|
|
(with-directory-excursion (string-append "src/" import-path)
|
|
|
|
|
(invoke "go" "test" "-v"
|
|
|
|
|
"./doc/..."
|
|
|
|
|
"./internal/..."
|
|
|
|
|
"./scan/..."))))))))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
(list go-github-com-google-go-cmdtest
|
|
|
|
|
go-github-com-google-go-cmp
|
|
|
|
|
go-golang-org-x-mod
|
|
|
|
|
go-golang-org-x-sync
|
|
|
|
|
go-golang-org-x-telemetry
|
|
|
|
|
go-golang-org-x-tools))
|
|
|
|
|
(home-page "https://golang.org/x/vuln")
|
|
|
|
|
(synopsis "Go Vulnerability Management")
|
|
|
|
|
(description
|
|
|
|
|
"This repository contains packages for accessing and analyzing data from
|
|
|
|
|
the @url{https://vuln.go.dev,Go Vulnerability Database}.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
2024-02-10 17:42:16 +01:00
|
|
|
|
(define-public go-golang-org-x-xerrors
|
2024-09-12 23:26:57 +02:00
|
|
|
|
(package
|
|
|
|
|
(name "go-golang-org-x-xerrors")
|
|
|
|
|
(version "0.0.0-20200804184101-5ec99f83aff1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://go.googlesource.com/xerrors")
|
|
|
|
|
(commit (go-version->git-ref version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "1dbzc3gmf2haazpv7cgmv97rq40g2xzwbglc17vas8dwhgwgwrzb"))))
|
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
#: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)))
|
2024-02-10 17:42:16 +01:00
|
|
|
|
|
2024-07-21 13:05:58 +02:00
|
|
|
|
(define-public go-google-golang-org-protobuf
|
|
|
|
|
(package
|
|
|
|
|
(name "go-google-golang-org-protobuf")
|
2024-09-12 23:45:15 +02:00
|
|
|
|
(version "1.34.2")
|
2024-07-21 13:05:58 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://go.googlesource.com/protobuf")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
2024-09-12 23:45:15 +02:00
|
|
|
|
(base32 "0l18301prwy38wam9zsbhgwddwjaflvnvamghg0h1d1p201gxbp3"))))
|
2024-07-21 13:05:58 +02:00
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
#:import-path "google.golang.org/protobuf"
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
;; XXX: Workaround for go-build-system's lack of Go modules
|
|
|
|
|
;; support.
|
|
|
|
|
(delete 'build)
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
|
|
|
|
(when tests?
|
|
|
|
|
(with-directory-excursion (string-append "src/" import-path)
|
|
|
|
|
(invoke "go" "test" "-v" "./..."))))))))
|
|
|
|
|
(propagated-inputs (list go-github-com-google-go-cmp))
|
|
|
|
|
(home-page "https://google.golang.org/protobuf")
|
|
|
|
|
(synopsis "Go library for Protocol Buffers")
|
|
|
|
|
(description
|
|
|
|
|
"The protobuf package provides a Go implementation of Protocol Buffers, a
|
|
|
|
|
language and platform neutral, extensible mechanism for serializing structured
|
|
|
|
|
data. It is a successor to @code{go-github-com-golang-protobuf} with an
|
|
|
|
|
improved and cleaner API.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
2024-09-13 11:25:00 +02:00
|
|
|
|
;;;
|
|
|
|
|
;;; Executables:
|
|
|
|
|
;;;
|
|
|
|
|
|
|
|
|
|
(define-public govulncheck
|
|
|
|
|
(package
|
|
|
|
|
(inherit go-golang-org-x-vuln)
|
|
|
|
|
(name "govulncheck")
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
#:tests? #f
|
|
|
|
|
#:install-source? #f
|
|
|
|
|
#:import-path "golang.org/x/vuln/cmd/govulncheck"
|
|
|
|
|
#:unpack-path "golang.org/x/vuln"))))
|
|
|
|
|
|
2024-02-05 18:30:31 +01:00
|
|
|
|
;;;
|
|
|
|
|
;;; 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
|
|
|
|
|
;;; functionality or similar names.
|
|
|
|
|
;;;
|