2024-02-05 17:30:31 +00:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2024-02-10 21:14:55 +00:00
|
|
|
|
;;; Copyright © 2019 Brian Leung <bkleung89@gmail.com>
|
2024-02-10 21:39:59 +00:00
|
|
|
|
;;; Copyright © 2019, 2020 Leo Famulari <leo@famulari.name>
|
2024-02-10 17:00:55 +00:00
|
|
|
|
;;; Copyright © 2020 Danny Milosavljevic <dannym@scratchpost.org>
|
2024-02-10 21:32:16 +00:00
|
|
|
|
;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
|
2024-02-10 17:23:32 +00:00
|
|
|
|
;;; Copyright © 2020 HiPhish <hiphish@posteo.de>
|
2024-02-10 21:25:12 +00:00
|
|
|
|
;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com>
|
2024-02-10 16:42:16 +00:00
|
|
|
|
;;; Copyright © 2020 Ryan Prior <rprior@protonmail.com>
|
2024-02-10 17:00:55 +00:00
|
|
|
|
;;; Copyright © 2020 Vagrant Cascadian <vagrant@debian.org>
|
2024-02-10 17:34:47 +00:00
|
|
|
|
;;; Copyright © 2021 Arun Isaac <arunisaac@systemreboot.net>
|
2024-02-10 16:29:50 +00:00
|
|
|
|
;;; Copyright © 2021 Ludovic Courtès <ludo@gnu.org>
|
2024-02-10 21:39:59 +00:00
|
|
|
|
;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
|
2024-02-10 16:29:50 +00:00
|
|
|
|
;;; Copyright © 2021 hackeryarn <artemchernyak@gmail.com>
|
2024-02-05 20:57:31 +00:00
|
|
|
|
;;; Copyright © 2023 Artyom V. Poptsov <poptsov.artyom@gmail.com>
|
|
|
|
|
;;; Copyright © 2023 Felix Lechner <felix.lechner@lease-up.com>
|
2024-02-10 16:24:01 +00:00
|
|
|
|
;;; Copyright © 2023 Katherine Cox-Buday <cox.katherine.e@gmail.com>
|
2024-02-10 17:34:47 +00:00
|
|
|
|
;;; Copyright © 2023 Nicolas Graves <ngraves@ngraves.fr>
|
2024-02-10 17:00:55 +00:00
|
|
|
|
;;; Copyright © 2023 Timo Wilken <guix@twilken.net>
|
2024-02-17 17:38:53 +00:00
|
|
|
|
;;; Copyright © 2024 Troy Figiel <troy@troyfigiel.com>
|
2024-02-05 17:30:31 +00: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)
|
|
|
|
|
#:use-module (gnu packages))
|
|
|
|
|
|
|
|
|
|
;;; 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-02-10 21:25:12 +00:00
|
|
|
|
(define-public go-github-com-yuin-goldmark
|
|
|
|
|
(package
|
|
|
|
|
(name "go-github-com-yuin-goldmark")
|
2024-07-02 21:00:14 +00:00
|
|
|
|
(version "1.7.4")
|
2024-02-10 21:25:12 +00: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 21:00:14 +00:00
|
|
|
|
(base32 "01807xs8501cyhkrrgg6k9ghl9jrw6dp0ry9knygck48canckxs2"))))
|
2024-02-10 21:25:12 +00:00
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
2024-07-03 08:18:44 +00: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?
|
|
|
|
|
(with-directory-excursion (string-append "src/" import-path)
|
|
|
|
|
(invoke "go" "test" "-v" "./..."))))))))
|
2024-02-10 21:25:12 +00:00
|
|
|
|
(home-page "https://github.com/yuin/goldmark/")
|
|
|
|
|
(synopsis "Markdown parser")
|
2024-07-03 08:18:44 +00:00
|
|
|
|
(description
|
|
|
|
|
"This package provides a markdown parser.")
|
2024-02-10 21:25:12 +00:00
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
2024-02-10 21:39:59 +00:00
|
|
|
|
(define-public go-golang-org-x-crypto
|
|
|
|
|
(package
|
|
|
|
|
(name "go-golang-org-x-crypto")
|
2024-06-20 09:22:28 +00:00
|
|
|
|
(version "0.14.0")
|
2024-02-10 21:39:59 +00:00
|
|
|
|
(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
|
2024-06-20 09:22:28 +00:00
|
|
|
|
(base32 "08124qkp0l0blq6rw68llfbf84kp99255q0yvxyv27c05b0wkh66"))))
|
2024-02-10 21:39:59 +00:00
|
|
|
|
(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
|
2024-06-20 09:22:28 +00:00
|
|
|
|
(list go-golang-org-x-net
|
|
|
|
|
go-golang-org-x-sys
|
|
|
|
|
go-golang-org-x-term
|
|
|
|
|
go-golang-org-x-text))
|
2024-02-10 21:39:59 +00:00
|
|
|
|
(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)))
|
|
|
|
|
|
2024-02-10 16:24:01 +00:00
|
|
|
|
(define-public go-golang-org-x-exp
|
|
|
|
|
(package
|
|
|
|
|
(name "go-golang-org-x-exp")
|
2024-07-03 11:59:09 +00:00
|
|
|
|
(version "0.0.0-20240613232115-7f521ea00fb8")
|
2024-02-10 16:24:01 +00: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-07-03 11:59:09 +00:00
|
|
|
|
(base32 "0ccjgv19w5p9sbcq12czmfnkjwv3b7hfljifwax6r9wk4dx0fcn7"))
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
'(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 16:24:01 +00:00
|
|
|
|
(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)))
|
|
|
|
|
|
2024-07-13 13:43:53 +00: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 21:32:16 +00:00
|
|
|
|
(define-public go-golang-org-x-image
|
2024-07-03 19:21:23 +00:00
|
|
|
|
(package
|
|
|
|
|
(name "go-golang-org-x-image")
|
|
|
|
|
(version "0.18.0")
|
|
|
|
|
(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
|
|
|
|
|
(base32 "0d7zwdsg06km24vhx6dzk1w26wpi3yhx9jfkf9jnsp5chv5pzlw3"))))
|
2024-07-03 19:22:15 +00:00
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
2024-07-03 20:58:53 +00: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 19:22:15 +00:00
|
|
|
|
(synopsis "Supplemental Go image libraries")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides supplemental Go libraries for image processing.")
|
|
|
|
|
(license license:bsd-3)))
|
2024-02-10 21:32:16 +00:00
|
|
|
|
|
2024-02-10 16:29:50 +00:00
|
|
|
|
(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))))
|
|
|
|
|
|
2024-02-05 20:57:31 +00:00
|
|
|
|
(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))))
|
2024-02-22 18:31:07 +00:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
(list go-golang-org-x-sys go-golang-org-x-term go-golang-org-x-text))
|
2024-02-05 20:57:31 +00: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))))
|
|
|
|
|
|
|
|
|
|
;; 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")))))))
|
|
|
|
|
|
2024-02-10 17:23:32 +00:00
|
|
|
|
(define-public go-golang-org-x-sync
|
2024-06-20 07:10:30 +00:00
|
|
|
|
(package
|
|
|
|
|
(name "go-golang-org-x-sync")
|
|
|
|
|
(version "0.7.0")
|
|
|
|
|
(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
|
|
|
|
|
(base32 "03yq3pnjwqxqy1cvbkaa39ca2b9cli1k5wnz76l3a65n9fafai6q"))))
|
|
|
|
|
(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 08:24:13 +00: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 07:10:30 +00:00
|
|
|
|
(license license:bsd-3)))
|
2024-02-10 17:23:32 +00:00
|
|
|
|
|
2024-02-07 20:53:56 +00:00
|
|
|
|
(define-public go-golang-org-x-sys
|
2024-06-20 09:10:25 +00:00
|
|
|
|
(package
|
|
|
|
|
(name "go-golang-org-x-sys")
|
|
|
|
|
(version "0.21.0")
|
|
|
|
|
(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
|
|
|
|
|
(base32 "000fcyi863sbmamdn3cwfv3s3z9ls5l34xnjavcbgjs591ghki8y"))))
|
|
|
|
|
(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 20:53:56 +00:00
|
|
|
|
support for low-level interaction with the operating system.")
|
2024-06-20 09:10:25 +00:00
|
|
|
|
(license license:bsd-3)))
|
2024-02-07 20:53:56 +00:00
|
|
|
|
|
2024-02-10 17:34:47 +00:00
|
|
|
|
(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)))
|
|
|
|
|
|
2024-02-10 21:14:55 +00:00
|
|
|
|
(define-public go-golang-org-x-text
|
|
|
|
|
(package
|
|
|
|
|
(name "go-golang-org-x-text")
|
2024-07-03 21:03:11 +00:00
|
|
|
|
(version "0.16.0")
|
2024-02-10 21:14:55 +00:00
|
|
|
|
(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
|
2024-07-03 21:03:11 +00:00
|
|
|
|
(base32 "0pmn0i1xbpwvzl4cdgmjqcsk9vckhqrq6699fnr9mkglh4xj3p7a"))))
|
2024-02-10 21:14:55 +00:00
|
|
|
|
(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)))
|
|
|
|
|
|
2024-02-10 17:44:46 +00:00
|
|
|
|
(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))))
|
|
|
|
|
|
2024-02-10 21:28:17 +00:00
|
|
|
|
(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)))
|
|
|
|
|
|
2024-02-10 16:42:16 +00:00
|
|
|
|
(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))))
|
|
|
|
|
|
2024-02-05 17:30:31 +00: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.
|
|
|
|
|
;;;
|