diff options
Diffstat (limited to 'gnu/packages/golang.scm')
-rw-r--r-- | gnu/packages/golang.scm | 978 |
1 files changed, 163 insertions, 815 deletions
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 00dde61f2c..fe26adeede 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2016-2023 Efraim Flashner <efraim@flashner.co.il> +;;; Copyright © 2016-2024 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2016 Matthew Jordan <matthewjordandevops@yandex.com> ;;; Copyright © 2016 Andy Wingo <wingo@igalia.com> ;;; Copyright © 2016, 2019, 2021 Ludovic Courtès <ludo@gnu.org> @@ -47,6 +47,7 @@ ;;; Copyright © 2024 Greg Hogan <code@greghogan.com> ;;; Copyright © 2024 Brennan Vincent <brennan@umanwizard.com> ;;; Copyright © 2024 André Batista <nandre@riseup.net> +;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -472,7 +473,7 @@ in the style of communicating sequential processes (@dfn{CSP}).") ("go-fix-script-tests.patch" ,(search-patch "go-fix-script-tests.patch")) ,@(package-native-inputs go-1.4))) (supported-systems (fold delete %supported-systems - (list "powerpc-linux" "i586-gnu"))))) + (list "powerpc-linux" "i586-gnu" "x86_64-gnu"))))) ;; https://github.com/golang/go/wiki/MinimumRequirements#microarchitecture-support (define %go-1.17-arm-micro-architectures @@ -812,7 +813,10 @@ in the style of communicating sequential processes (@dfn{CSP}).") ;; See 'src/cmd/dist/notgo117.go' in the source code distribution, ;; as well as the upstream discussion of this topic: ;; https://go.dev/issue/44505 - (alist-replace "go" (list go-1.17) (package-native-inputs go-1.17))))) + ;; We continue to use gccgo-12 since it provides go-1.18. + (if (member (%current-system) (package-supported-systems go-1.4)) + (alist-replace "go" (list go-1.17) (package-native-inputs go-1.17)) + (package-native-inputs go-1.17))))) (define-public go-1.21 (package @@ -952,7 +956,7 @@ in the style of communicating sequential processes (@dfn{CSP}).") (package (inherit go-1.21) (name "go") - (version "1.22.6") + (version "1.22.7") (source (origin (method git-fetch) @@ -961,7 +965,7 @@ in the style of communicating sequential processes (@dfn{CSP}).") (commit (string-append "go" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1rjplx7wa6p2c19grx6hhkhn16mmbib5cwmhz9k8ywymlbmhhsyd")))) + (base32 "0m1idhhifhpjf6n56pca4wg6cyripdzmyl0jswdiy0kiqvs3whqb")))) (arguments (substitute-keyword-arguments (package-arguments go-1.21) ((#:phases phases) @@ -988,7 +992,7 @@ in the style of communicating sequential processes (@dfn{CSP}).") (package (inherit go-1.22) (name "go") - (version "1.23.0") + (version "1.23.2") (source (origin (method git-fetch) @@ -997,7 +1001,7 @@ in the style of communicating sequential processes (@dfn{CSP}).") (commit (string-append "go" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0yq7fmha7x6fiah68mpx7cvffsd8a7z569cfq2dj5s66pbgzmji9")))))) + (base32 "0v8j43yqkhp5i5649nbxsq7lc9bjjn39gqqvlnz0d9c47qz9h7y7")))))) ;; ;; Default Golang version used in guix/build-system/go.scm to build packages. @@ -1239,7 +1243,7 @@ cluster segmentation algorithm.") go-github-com-kataras-golog go-github-com-mufti1-interconv go-github-com-opentracing-opentracing-go - go-github-com-operatorfoundation-monolith-go + go-github-com-operatorfoundation-monolith-go-1.0.4 go-github-com-operatorfoundation-obfs4 go-github-com-operatorfoundation-shapeshifter-ipc go-github-com-shadowsocks-go-shadowsocks2 @@ -1646,7 +1650,7 @@ configuration file.") (define-public go-github-com-operatorfoundation-monolith-go (package (name "go-github-com-operatorfoundation-monolith-go") - (version "1.0.4") + (version "1.0.10") (source (origin (method git-fetch) @@ -1656,7 +1660,7 @@ configuration file.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "066bqlgw5h7a3kxswqlv734asb7nw2y6snsn09yqk0ixj23qw22s")))) + (base32 "0zzamnrakjvz9frxscyhrvyz2ikqq2klmynn218jk5dar6mc6xyf")))) (build-system go-build-system) (arguments `(#:tests? #f ; ERROR: Generated bytes do not match correct answer. @@ -1669,6 +1673,23 @@ configuration file.") (description "Monolith-Go is a Go library for working with byte sequences.") (license license:expat))) +;; To build bitmask 0.21.11, remove when it's updated. +(define-public go-github-com-operatorfoundation-monolith-go-1.0.4 + (package + (inherit go-github-com-operatorfoundation-monolith-go) + (name "go-github-com-operatorfoundation-monolith-go") + (version "1.0.4") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/OperatorFoundation/monolith-go") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "066bqlgw5h7a3kxswqlv734asb7nw2y6snsn09yqk0ixj23qw22s")))))) + (define-public go-github-com-dpotapov-go-spnego (let ((commit "298b63a544303a239753d04314aada5bdbad7e4a") (revision "0")) @@ -1697,28 +1718,6 @@ functionality for functions that may fail. It includes various customizable retry strategies, such as fixed delay, backoff delay, and random delay.") (license license:expat)))) -(define-public go-github-com-deckarep-golang-set - (package - (name "go-github-com-deckarep-golang-set") - (version "1.7.1") - (source - (origin - (method git-fetch) - (uri - (git-reference - (url "https://github.com/deckarep/golang-set") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0y64c0p6a7ww5jp6adm6fm97vsni86njw8wkwxfmciy466vhl0lf")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/deckarep/golang-set")) - (home-page "https://github.com/deckarep/golang-set") - (synopsis "Set type for Go") - (description "Set is the set collection for the Go language.") - (license license:expat))) - (define-public go-howett-net-plist (package (name "go-howett-net-plist") @@ -2057,7 +2056,7 @@ parsing and encoding support for STUN and TURN protocols.") (arguments '(#:import-path "github.com/flopp/go-findfont")) (home-page "https://github.com/flopp/go-findfont") - (synopsis "go-findfont") + (synopsis "Go font finder library") (description "This package provides a platform-agnostic Go library to locate TrueType font files in your system's user and system font directories.") @@ -2268,36 +2267,6 @@ incorporates ideas and concepts from Philipp Winter's ScrambleSuit protocol.") web browsing activities based on HTTP Upgrade (HTTPT).") (license license:bsd-2)))) -(define-public go-github-com-sevlyar-go-daemon - (package - (name "go-github-com-sevlyar-go-daemon") - (version "0.1.5") - (source - (origin - (method git-fetch) - (uri - (git-reference - (url "https://github.com/sevlyar/go-daemon") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (modules '((guix build utils))) - (snippet - ;; XXX: Remove when updating - '(begin - (substitute* "compilation_test.go" - ((".*\"darwin/386\".*") "")))) - (sha256 - (base32 "1y3gnxaifykcjcbzx91lz9bc93b95w3xj4rjxjbii26pm3j7gqyk")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/sevlyar/go-daemon")) - (propagated-inputs - (list go-golang-org-x-sys)) - (home-page "https://github.com/sevlyar/go-daemon") - (synopsis "Library for writing system daemons") - (description "Go-Daemon is a library for writing system daemons in Go.") - (license license:expat))) - (define-public go-github-com-keybase-go-ps (let ((commit "91aafc93ba19d1988cff338c1929d35b6c6f5b50") (revision "0")) @@ -2391,30 +2360,6 @@ management interface. It can be used to monitor and control an OpenVPN process running with its management port enabled.") (license license:expat)))) -(define-public go-github-com-emersion-go-autostart - (let ((commit "00ed301c8e9ae79e82878c6361c709983ac5dd2c") - (revision "0")) - (package - (name "go-github-com-emersion-go-autostart") - (version (git-version "0.0.0" revision commit)) - (source - (origin - (method git-fetch) - (uri - (git-reference - (url "https://github.com/emersion/go-autostart") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0cqqvbzn32xv5lknfygrx01rx2sc6pi833k7008nlk9lsfgry06v")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/emersion/go-autostart")) - (home-page "https://github.com/emersion/go-autostart") - (synopsis "Autostart library in Go") - (description "Go-Autostart is a Go library to run a command after login.") - (license license:expat)))) - (define-public go-github-com-dchest-siphash (package (name "go-github-com-dchest-siphash") @@ -2516,29 +2461,6 @@ writers can be supplied for alternate environments.") "The datacounter package provides counters for Go readers and writers.") (license license:expat))) -(define-public go-github-com-emersion-go-textwrapper - (package - (name "go-github-com-emersion-go-textwrapper") - (version "0.0.0-20200911093747-65d896831594") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/emersion/go-textwrapper") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1lh9d7zvj6gm1rr6sv5xlagklgx9d666hq5srd37a4sdcjkbiqmq")))) - (build-system go-build-system) - (arguments - (list #:import-path "github.com/emersion/go-textwrapper")) - (home-page "https://github.com/emersion/go-textwrapper") - (synopsis "Text-wrapping writer for Go") - (description - "The textwrapper package provides a writer that wraps long text lines to -a specified length.") - (license license:expat))) - (define-public go-github-com-aki237-nscjar (let ((commit "e2df936ddd6050d30dd90c7214c02b5019c42f06") (revision "0")) @@ -3126,80 +3048,21 @@ command-line parsers.") (home-page "https://github.com/tj/docopt") (license license:expat))) -(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 "0.0.0-20230110180137-6ad3e3d07815") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://go.googlesource.com/vuln") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1fhz27ni8bs872rgvqq700qacak9v45zy0fh2hilq21sk6dks72r")))) - (build-system go-build-system) - (arguments - (list - #:tests? #f ; it tires to download modules from the network - #: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-exp - go-golang-org-x-mod - go-golang-org-x-sync - 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))) - -(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")) - (native-inputs - (list coreutils-minimal)))) - (define-public gopls (package (name "gopls") ;; XXX: Starting from 0.14.0 gppls needs golang.org/x/telemetry, which ;; needs to be discussed if it may be included in Guix. - (version "0.13.2") + (version "0.16.2") (source (origin (method git-fetch) (uri (git-reference (url "https://go.googlesource.com/tools") - (commit (string-append "gopls/v" version)))) + (commit (go-version->git-ref version #:subdir "gopls")))) (file-name (git-file-name name version)) (sha256 - (base32 "1qym2c0xvv6vcgwh0kz8sw094r88lzrl08xpvmg08lrqi00ma6kx")))) + (base32 "1l6mkh4v0f602spw3zdmkxqizk32zvgpfy461sinqwhlag8v8v3a")))) (build-system go-build-system) (arguments (list @@ -3210,22 +3073,21 @@ the @url{https://vuln.go.dev,Go Vulnerability Database}.") #~(modify-phases %standard-phases (add-before 'unpack 'override-tools (lambda _ + ;; XXX: Write a procedure deleting all but current module source + ;; to cover case with monorepo. (delete-file-recursively "src/golang.org/x/tools")))))) (native-inputs (list go-github-com-google-go-cmp - go-github-com-jba-printsrc go-github-com-jba-templatecheck - go-github-com-sergi-go-diff go-golang-org-x-mod go-golang-org-x-sync - go-golang-org-x-sys + go-golang-org-x-telemetry go-golang-org-x-text - go-golang-org-x-tools go-golang-org-x-vuln go-gopkg-in-yaml-v3 go-honnef-co-go-tools go-mvdan-cc-gofumpt - go-mvdan-cc-xurls)) + go-mvdan-cc-xurls-v2)) (home-page "https://golang.org/x/tools/gopls") (synopsis "Official language server for the Go language") (description @@ -3260,39 +3122,30 @@ editor.") optimized for performance yet simple to use.") (license license:expat)))) -(define-public go-github-com-tomnomnom-gron +(define-public gron (package (name "gron") (version "0.7.1") - (home-page "https://github.com/tomnomnom/gron") (source (origin (method git-fetch) (uri (git-reference - (url home-page) + (url "https://github.com/tomnomnom/gron") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1sj34b6yv0qigy3aq7qmwf8bqxp1a8qh9p10lzkpw58s1c0iyh36")))) (build-system go-build-system) (arguments - (let ((import-path "github.com/tomnomnom/gron")) - `(#:import-path ,import-path - #:phases - (modify-phases %standard-phases - (add-after 'check 'remove-non-source - (lambda _ - (for-each (lambda (dir) - (delete-file-recursively - (string-append "src/" ,import-path dir))) - '("/docs" "/script" "/testdata")) - #t)))))) - (inputs - `(("github.com/fatih/color" ,go-github-com-fatih-color) - ("github.com/mattn/go-colorable" ,go-github-com-mattn-go-colorable) - ("github.com/mattn/go-isatty" ,go-github-com-mattn-go-isatty) - ("github.com/nwidger/jsoncolor" ,go-github-com-nwidger-jsoncolor) - ("github.com/pkg/errors" ,go-github-com-pkg-errors))) + (list + #:install-source? #f + #:import-path "github.com/tomnomnom/gron")) + (native-inputs + (list go-github-com-fatih-color + go-github-com-mattn-go-colorable + go-github-com-nwidger-jsoncolor + go-github-com-pkg-errors)) + (home-page "https://github.com/tomnomnom/gron") (synopsis "Transform JSON to make it easier to grep") (description "This package transforms JSON into discrete assignments to make it easier @@ -3326,32 +3179,6 @@ information about the resource usage and performance characteristics of running containers.") (license license:asl2.0)))) -(define-public go-github-com-jonboulle-clockwork - (let ((commit "e3653ace2d63753697e0e5b07b9393971c0bba9d") - (revision "0")) - (package - (name "go-github-com-jonboulle-clockwork") - (version (git-version "0.0.0" revision commit)) - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/jonboulle/clockwork") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1avzqhks12a8x2yzpvjsf3k0gv9cy7zx2z88hn0scacnxkphisvc")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/jonboulle/clockwork")) - (home-page "https://github.com/jonboulle/clockwork") - (synopsis "Fake clock library for Go") - (description - "Replace uses of the @code{time} package with the -@code{clockwork.Clock} interface instead.") - (license license:asl2.0)))) - (define-public go-github-com-spf13-afero (package (name "go-github-com-spf13-afero") @@ -3503,30 +3330,6 @@ GNU extensions} to the POSIX recommendations for command-line options.") all types of configuration needs and formats.") (license license:expat))) -(define-public go-github-com-fsnotify-fsnotify - (package - (name "go-github-com-fsnotify-fsnotify") - (version "1.7.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/fsnotify/fsnotify") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1h7vs21lkj4bqbw5a6mqykaf56y181r0nja7c8pzajkvbsc39y8m")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/fsnotify/fsnotify")) - (propagated-inputs - `(("golang.org/x/sys" ,go-golang-org-x-sys))) - (home-page "https://github.com/fsnotify/fsnotify") - (synopsis "File system notifications for Go") - (description "File system notifications for Go") - (license license:bsd-3))) - (define-public go-github-com-nxadm-tail (package (name "go-github-com-nxadm-tail") @@ -3573,30 +3376,6 @@ updating files, like @command{tail -f}.") (description "Java properties scanner for Go") (license license:bsd-2))) -(define-public go-github-com-subosito-gotenv - (package - (name "go-github-com-subosito-gotenv") - (version "1.2.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/subosito/gotenv") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0mav91j7r4arjkpq5zcf9j74f6pww8ic53x43wy7kg3ibw31yjs5")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/subosito/gotenv")) - (native-inputs - (list go-github-com-stretchr-testify)) - (home-page "https://github.com/subosito/gotenv") - (synopsis "Go library for loading environment variables from files") - (description "Go library for loading environment variables from files") - (license license:expat))) - (define-public go-github-com-sirupsen-logrus (package (name "go-github-com-sirupsen-logrus") @@ -4696,7 +4475,7 @@ fast and distributable command line applications in an expressive way.") (arguments '(#:import-path "github.com/cpuguy83/go-md2man")) (propagated-inputs - (list go-github-com-russross-blackfriday)) + (list go-github-com-russross-blackfriday-v2)) (home-page "https://github.com/cpuguy83/go-md2man") (synopsis "Convert markdown into roff") (description "Go-md2man is a Go program that converts markdown to roff for @@ -4733,7 +4512,7 @@ source file.") (define-public go-github-com-russross-blackfriday (package (name "go-github-com-russross-blackfriday") - (version "2.0.1") + (version "1.6.0") (source (origin (method git-fetch) @@ -4743,7 +4522,7 @@ source file.") (file-name (git-file-name name version)) (sha256 (base32 - "0nlz7isdd4rgnwzs68499hlwicxz34j2k2a0b8jy0y7ycd2bcr5j")))) + "036028ynpq52z9snmd2b1kjzyvv6n9sg71k651ndznggnw19aamp")))) (build-system go-build-system) (arguments '(#:import-path "github.com/russross/blackfriday")) @@ -4756,6 +4535,23 @@ source file.") (description "Blackfriday is a Markdown processor in Go.") (license license:bsd-2))) +(define-public go-github-com-russross-blackfriday-v2 + (package + (inherit go-github-com-russross-blackfriday) + (name "go-github-com-russross-blackfriday-v2") + (version "2.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/russross/blackfriday") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0d1rg1drrfmabilqjjayklsz5d0n3hkf979sr3wsrw92bfbkivs7")))) + (arguments + (list #:import-path "github.com/russross/blackfriday/v2")))) + (define-public go-github-com-rubyist-tracerx (let ((commit "787959303086f44a8c361240dfac53d3e9d53ed2") (revision "0")) @@ -4927,6 +4723,16 @@ structure. It can also produce a much more verbose, one-item-per-line representation suitable for computing diffs.") (license license:asl2.0))) +;; TODO: Merge with go-github-com-kylelemons-godebug and provide both module; +;; for go-team. +(define-public go-github-com-kylelemons-godebug-pretty + (package + (inherit go-github-com-kylelemons-godebug) + (name "go-github-com-kylelemons-godebug-pretty") + (arguments + '(#:import-path "github.com/kylelemons/godebug/pretty" + #:unpack-path "github.com/kylelemons/godebug")))) + (define-public go-github-com-kr-text (package (name "go-github-com-kr-text") @@ -5135,6 +4941,27 @@ systems.") (modify-inputs (package-inputs go-github-com-gdamore-tcell) (prepend go-golang-org-x-term go-golang-org-x-sys))))) +(define-public go-github-com-delthas-tcell-v2 + ;; TODO This variant allows upgrading senpai, and looks to be unnecessary in + ;; the next release of senpai + (hidden-package + (package + (inherit go-github-com-gdamore-tcell) + (name "go-github-com-delthas-tcell") + (version "2.4.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/delthas/tcell") + (commit "837a7d7"))) + (file-name (git-file-name name version)) + (sha256 + (base32 "05zr73q38dawl7hr6g7v4pkyv6mqr0zp2l9qsgn7xmf1p9q4bn7j")))) + (propagated-inputs (modify-inputs (package-inputs + go-github-com-gdamore-tcell) + (prepend go-golang-org-x-term go-golang-org-x-sys)))))) + (define-public go-git-sr-ht-rockorager-tcell-term (package (name "go-git-sr-ht-rockorager-tcell-term") @@ -5404,101 +5231,6 @@ a cron spec parser and job runner.") "This is a fork of another go-libvterm library for use with aerc.") (license license:expat)))) -(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 - '(#: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))) - -(define-public go-github-com-google-gopacket - (package - (name "go-github-com-google-gopacket") - (version "1.1.19") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/google/gopacket") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "048qwm2n0wrpql4qqgd7jyynn3gk069yvqbxnshlayzmbhf87ls4")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/google/gopacket")) - (home-page "https://github.com/google/gopacket") - (synopsis "Packet processing capabilities library") - (description - "This package provides packet processing capabilities for Go.") - (license license:bsd-3))) - -(define-public go-github-com-google-goterm - (let ((commit "fc88cf888a3fa99ecc23d1efc1a44284268457d3") - (revision "1")) - (package - (name "go-github-com-google-goterm") - (version (git-version "0.0.1" revision commit)) - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/google/goterm") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0809sf02dhg2bjhsz43pmlb5d7nbsnwxls3lw01zw5p7ri9bqwfb")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/google/goterm/term" - #:unpack-path "github.com/google/goterm")) - (home-page "https://github.com/google/goterm/") - (synopsis "PTY creation and termios get/set attributes") - (description "The term package implements PTY creation and termios get/set -attributes. It also contains some convenience functions for colors, SSH to -and from termios translations, readCh, reading passwords, etc.") - (license license:bsd-3)))) - -(define-public go-github-com-google-go-querystring - (let ((commit "992e8021cf787c100d55520d5c906e01536c0a19") ;fix format in tests - (revision "1")) - (package - (name "go-github-com-google-go-querystring") - (version "1.0.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/google/go-querystring") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0mbx4jvf7nz4sk2fgqfq1llz4xb3vc4625b4x398mspr3a5077rs")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/google/go-querystring/query" - #:unpack-path "github.com/google/go-querystring")) - (home-page "https://github.com/google/go-querystring/") - (synopsis "Library for encoding structs into URL query parameters") - (description "@code{go-querystring} is Go library for encoding structs -into URL query parameters.") - (license license:bsd-3)))) - (define (go-gotest-tools-source version sha256-base32-hash) (origin (method git-fetch) @@ -5969,7 +5701,7 @@ maps (because they are not addressable using Go reflection).") matching and globbing with support for \"doublestar\" patterns.") (license license:expat))) -;; For chezmoi-1.8.10 +;; For chezmoi-1.8.11 (define-public go-github-com-bmatcuk-doublestar-v2 (package (inherit go-github-com-bmatcuk-doublestar) @@ -5990,6 +5722,25 @@ matching and globbing with support for \"doublestar\" patterns.") #:unpack-path "github.com/bmatcuk/doublestar/v2" #:import-path "github.com/bmatcuk/doublestar/v2")))) +(define-public go-github-com-bmatcuk-doublestar-v3 + (package + (inherit go-github-com-bmatcuk-doublestar) + (name "go-github-com-bmatcuk-doublestar-v3") + (version "3.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bmatcuk/doublestar") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "011h07mlmscbxxjr3h30fjjb4dw3gb245nzczaq520r112xlidhj")))) + (arguments + (list + #:tests? #f ; tests have more broken parts + #:import-path "github.com/bmatcuk/doublestar/v3")))) + (define-public go-github-com-bmatcuk-doublestar-v4 (package (inherit go-github-com-bmatcuk-doublestar) @@ -6089,6 +5840,7 @@ size of the terminal.") (build-system go-build-system) (arguments (list + #:embed-files #~(list ".*\\.xml") #:import-path "github.com/charmbracelet/glamour" #:phases #~(modify-phases %standard-phases @@ -6102,31 +5854,7 @@ size of the terminal.") #o644) (substitute* "src/github.com/charmbracelet/glamour/glamour_test.go" ((" generate = false") - " generate = true")))) - ;; FIXME: Pattern embedded: cannot embed directory embedded: - ;; contains no embeddable files. - ;; - ;; This happens due to Golang can't determine the valid directory of - ;; the module which is sourced during setup environment phase, but - ;; easy resolved after coping to expected directory "vendor" within - ;; the current package, see details in Golang source: - ;; - ;; - URL: <https://github.com/golang/go/blob/> - ;; - commit: 82c14346d89ec0eeca114f9ca0e88516b2cda454 - ;; - file: src/cmd/go/internal/load/pkg.go#L2059 - (add-before 'build 'copy-input-to-vendor-directory - (lambda* (#:key import-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" import-path) - (mkdir "vendor") - (copy-recursively - (string-append - #$(this-package-input "go-github-com-alecthomas-chroma-v2") - "/src/github.com") - "vendor/github.com")))) - (add-before 'install 'remove-vendor-directory - (lambda* (#:key import-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" import-path) - (delete-file-recursively "vendor"))))))) + " generate = true"))))))) (propagated-inputs (list go-github-com-alecthomas-chroma-v2 go-github-com-microcosm-cc-bluemonday @@ -6265,59 +5993,6 @@ errors (warnings).") (description "Gcfg reads INI-style configuration files into Go structs.") (license license:bsd-3))) -(define-public go-github-com-go-git-go-billy - (package - (name "go-github-com-go-git-go-billy") - (version "5.0.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/go-git/go-billy") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1wdzczfk1n50dl2zpgf46m69b0sm8qkan5xyv82pk9x53zm1dmdx")))) - (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/") - (synopsis "File system abstraction for Go") - (description "Billy implements an interface based on the OS's standard -library to develop applications without depending on the underlying storage. -This makes it virtually free to implement mocks and testing over -file system operations.") - (license license:asl2.0))) - -(define-public go-github-com-jba-printsrc - (package - (name "go-github-com-jba-printsrc") - (version "0.2.2") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/jba/printsrc") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1gyy3kmb5a5i710wkv3b7ah7i7sz5sdc7v3sab5m4rxch1sd2fpj")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/jba/printsrc" - ;; TODO: Open bug; expecting time.Local, but when local=UTC, we get time.UTC - #:tests? #f)) - (home-page "https://github.com/jba/printsrc") - (synopsis "Prints Go values as sourcecode") - (description - "Package printsrc prints Go values as Go source. It strives to render -legal Go source code, and returns an error when detects that it cannot.") - (license license:expat))) - (define-public go-github-com-jba-templatecheck (package (name "go-github-com-jba-templatecheck") @@ -6459,36 +6134,6 @@ can manipulate a @file{ssh_config} file from a program.") temporal directories.") (license license:expat)))) -(define-public go-github-com-go-git-go-git-fixtures - (package - (name "go-github-com-go-git-go-git-fixtures") - (version "4.0.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/go-git/go-git-fixtures") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "002yb1s2mxq2xijkl39ip1iyc3l52k23ikyi9ijfl4bgqxy79ljg")))) - (build-system go-build-system) - (arguments - (list - ;; XXX: panic: runtime error: makeslice: cap out of range - #:tests? (target-64bit?) - #:import-path "github.com/go-git/go-git-fixtures/v4" - #:phases - #~(modify-phases %standard-phases - (delete 'reset-gzip-timestamps)))) - (native-inputs - (list go-github-com-alcortesm-tgz go-github-com-go-git-go-billy - go-golang-org-x-sys go-gopkg-in-check-v1)) - (home-page "https://github.com/go-git/go-git-fixtures/") - (synopsis "Fixtures used by @code{go-git}") - (description "This package provides fixtures used by @code{go-git}.") - (license license:asl2.0))) - (define-public go-github-com-pkg-diff (package (name "go-github-com-pkg-diff") @@ -6889,31 +6534,6 @@ except that it adds convenience functions that use the fmt package to format error messages.") (license license:bsd-3))) -(define-public go-github-com-arceliar-phony - (let ((commit "d0c68492aca0bd4b5c5c8e0452c9b4c8af923eaf") - (revision "0")) - (package - (name "go-github-com-arceliar-phony") - (version (git-version "0.0.0" revision commit)) - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/Arceliar/phony") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0876y0hlb1zh8hn0pxrb5zfdadvaqmqwlr66p19yl2a76galz992")))) - (arguments - '(#:import-path "github.com/Arceliar/phony")) - (build-system go-build-system) - (home-page "https://github.com/Arceliar/phony") - (synopsis "Very minimal actor model library") - (description "Phony is a very minimal actor model library for Go, -inspired by the causal messaging system in the Pony programming language.") - (license license:expat)))) - (define-public go-github-com-gologme-log ;; this is the same as v1.2.0, only the LICENSE file changed (let ((commit "720ba0b3ccf0a91bc6018c9967a2479f93f56a55")) @@ -6968,31 +6588,6 @@ systems can import this package to enable running programs as services without modifying them.") (license license:zlib))) -(define-public go-github-com-tekwizely-go-parsing - (let ((commit "1548cfb17df54d365ce9febed0677c06a40a8ceb") - (revision "0")) - (package - (name "go-github-com-tekwizely-go-parsing") - (version (git-version "0.0.0" revision commit)) - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/tekwizely/go-parsing") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0bv5amka8hb9crc7qvlzi2kbycqrnh9d46b9wgcs8wqzl0z7w609")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/tekwizely/go-parsing")) - (home-page "https://github.com/tekwizely/go-parsing") - (synopsis "Text parsing, with lexers, parsers, and related tools") - (description - "This package provides Go modules focused on text parsing, with lexers, -parsers, and related tools.") - (license license:expat)))) - (define-public go-github-com-akosmarton-papipes (let ((commit "3c63b4919c769c9c2b2d07e69a98abb0eb47fe64") (revision "0")) @@ -7261,30 +6856,6 @@ the External Data Representation (XDR) standard protocol as specified in RFC 4506 (obsoletes RFC 1832 and RFC 1014) in pure Go.") (license license:isc))) -(define-public go-github-com-dustin-go-humanize - (package - (name "go-github-com-dustin-go-humanize") - (version "1.0.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/dustin/go-humanize") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1kqf1kavdyvjk7f8kx62pnm7fbypn9z1vbf8v2qdh3y7z7a0cbl3")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/dustin/go-humanize")) - (home-page "https://github.com/dustin/go-humanize") - (synopsis "Humane unit formatter") - (description "@code{go-humanize} provides formatters for units to human -friendly sizes. It converts boring ugly numbers to human-friendly strings and -back.") - (license license:expat))) - (define-public go-gopkg-in-djherbis-times-v1 (package (name "go-gopkg-in-djherbis-times-v1") @@ -7437,7 +7008,7 @@ parser.") (define-public go-github-com-charmbracelet-bubbletea (package (name "go-github-com-charmbracelet-bubbletea") - (version "0.13.2") + (version "1.2.3") (source (origin (method git-fetch) @@ -7447,28 +7018,47 @@ parser.") (file-name (git-file-name name version)) (sha256 (base32 - "1105cggi5fwqx69m0vrhgwx6kaw82w4ahn58sj0a81603c4yvrk0")))) + "0ggkl29qixgin5av1mbnwfbb31kmwpczh8pgpjsx9z277fs55mph")))) (build-system go-build-system) (arguments (list #:import-path "github.com/charmbracelet/bubbletea" - #:phases #~(modify-phases %standard-phases - (add-after 'unpack 'remove-examples - (lambda* (#:key import-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" import-path) - (for-each delete-file-recursively - '("examples" "tutorials")))))))) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (for-each delete-file-recursively + '("examples" "tutorials"))))) + (add-before 'check 'fix-tests + (lambda _ + ;; XXX: The package requires + ;; "go-github-com-charmbracelet-x-ansi" version 0.4.5; with the + ;; newer version of "ansi", some "bubbletea" screen tests fail + ;; as "ansi" 0.5.2 handles escape sequences a little bit + ;; differently. + (substitute* "src/github.com/charmbracelet/bubbletea/screen_test.go" + (("x1b\\[0K") + "x1b[K") + (("x1b\\[2;0H") + "x1b[2;H"))))))) (propagated-inputs - `(("github.com/mattn/go-isatty" ,go-github-com-mattn-go-isatty) - ("github.com/muesli/termenv" ,go-github-com-muesli-termenv) - ("github.com/mattn/go-runewidth" ,go-github-com-mattn-go-runewidth) - ("go-github-com-muesli-reflow" ,go-github-com-muesli-reflow) - ("go-github-com-lucasb-eyer-go-colorful" ,go-github-com-lucasb-eyer-go-colorful) - ("github.com/containerd/console" ,go-github-com-containerd-console) - ("go-golang-org-x-crypto" ,go-golang-org-x-crypto) - ("go-golang-org-x-sys" ,go-golang-org-x-sys) - ("go-golang-org-x-term" ,go-golang-org-x-term) - ("github.com/mattn/go-isatty" ,go-github-com-mattn-go-isatty))) + (list go-github-com-charmbracelet-lipgloss + go-github-com-charmbracelet-x-ansi + go-github-com-charmbracelet-x-term + go-github-com-containerd-console + go-github-com-lucasb-eyer-go-colorful + go-github-com-mattn-go-isatty + go-github-com-mattn-go-isatty + go-github-com-mattn-go-runewidth + go-github-com-muesli-ansi + go-github-com-muesli-cancelreader + go-github-com-muesli-reflow + go-github-com-muesli-termenv + go-golang-org-x-crypto + go-golang-org-x-sync + go-golang-org-x-sys + go-golang-org-x-term)) (home-page "https://github.com/charmbracelet/bubbletea") (synopsis "Powerful little TUI framework") (description @@ -7503,54 +7093,6 @@ full-window, or a mix of both.") dependencies and a simple API.") (license license:asl2.0))) -(define-public go-github-com-arceliar-ironwood - (package - (name "go-github-com-arceliar-ironwood") - (version "v0.0.0-20241016082300-f6fb9da97a17") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/Arceliar/ironwood") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "020gdcx6s2cvmi3bs3zanif08vqbabbg5pwqmqcrhj3v7d8k6dx5")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/Arceliar/ironwood" - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'remove-examples - (lambda* (#:key import-path #:allow-other-keys) - (delete-file-recursively - (string-append "src/" import-path "/cmd/ironwood-example")))) - ;; XXX: Replace when go-build-system supports nested path. - (delete 'build) - (replace 'check - (lambda* (#:key import-path tests? #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" "./...")))))))) - (propagated-inputs - (list go-github-com-arceliar-phony - go-github-com-bits-and-blooms-bitset - go-github-com-bits-and-blooms-bloom-v3 - go-golang-org-x-crypto)) - (home-page "https://github.com/Arceliar/ironwood") - (synopsis "Experimental network routing library") - (description - "Ironwood is a routing library with a @code{net.PacketConn}-compatible -interface using @code{ed25519.PublicKey}s as addresses. Basically, you use it -when you want to communicate with some other nodes in a network, but you can't -guarantee that you can directly connect to every node in that network. It was -written to test improvements to / replace the routing logic in -@url{https://github.com/yggdrasil-network/yggdrasil-go,Yggdrasil}, but it may -be useful for other network applications.") - (license license:mpl2.0))) - (define-public go-github-com-mtibben-percent (package (name "go-github-com-mtibben-percent") @@ -7717,7 +7259,7 @@ aware of your profiles and configuration in ~/.aws/config.") "1dm9ydqyflasp5li22kb0w73s6kp2swii8naqfhnz64v171gmm5v")))) (build-system go-build-system) (native-inputs - (list go-github.com-smartystreets-goconvey)) + (list go-github-com-smartystreets-goconvey)) (arguments '(#:import-path "gopkg.in/ini.v1" #:phases %standard-phases)) @@ -7891,29 +7433,6 @@ implementation.") using shell-style rules for quoting and commenting.") (license license:asl2.0))) -(define-public go-github-com-google-btree - (package - (name "go-github-com-google-btree") - (version "1.1.2") - (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 "0cqa8ck26p3wqz877hcvmfss17xm8wcbwd68shxv795ppahpdd9b")))) - (build-system go-build-system) - (arguments - '(#: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))) - (define-public go-github-com-peterbourgon-diskv (package (name "go-github-com-peterbourgon-diskv") @@ -8017,34 +7536,6 @@ result is a conceptually simple, but highly performant, disk-backed storage syst email library.") (license license:gpl3+))) -(define-public go-github-com-jaytaylor-html2text - (package - (name "go-github-com-jaytaylor-html2text") - (version "0.0.0-20211105163654-bc68cce691ba") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/jaytaylor/html2text") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "12ckgkp8xqgp0fh6019nwp4ssg2k1rv1a67cpk37ian4q5zrvppm")))) - (build-system go-build-system) - (arguments - (list #:import-path "github.com/jaytaylor/html2text" - ;; Tests are broken: <https://github.com/jaytaylor/html2text/issues/53> - #:tests? #f)) - (propagated-inputs (list go-golang-org-x-net - go-github-com-olekukonko-tablewriter - go-github-com-ssor-bom)) - (home-page "https://github.com/jaytaylor/html2text") - (synopsis "Convert HTML emails to text") - (description - "The html2text package converts HTML emails to plain text, allowing -text-only mail clients to display them.") - (license license:expat))) - (define-public go-github-com-riywo-loginshell (package (name "go-github-com-riywo-loginshell") @@ -8071,56 +7562,6 @@ text-only mail clients to display them.") of the current user.") (license license:expat))) -(define-public go-github-com-rylans-getlang - (package - (name "go-github-com-rylans-getlang") - (version "0.0.0-20201227074721-9e7f44ff8aa0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/rylans/getlang") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1yf698h21j88d7d9wkzq69cfd7vs1mfp96nhb83lx6hhh7rfvb92")))) - (build-system go-build-system) - (arguments - (list #:import-path "github.com/rylans/getlang")) - (propagated-inputs - (list go-golang-org-x-text)) - (native-inputs - (list go-github-com-stretchr-testify)) - (home-page "https://github.com/rylans/getlang") - (synopsis "Natural language detection package in pure Go") - (description - "This package provides fast natural language detection in Go.") - (license license:expat))) - -(define-public go-github-com-kyoh86-xdg - (package - (name "go-github-com-kyoh86-xdg") - (version "1.2.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/kyoh86/xdg") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0a5nz53fdz1c2qvwlf2dpjdd72nxri95i6q4b07c37kiipgaxncn")))) - (build-system go-build-system) - (arguments - (list #:import-path "github.com/kyoh86/xdg")) - (home-page "https://github.com/kyoh86/xdg") - (synopsis "XDG base directories for Go") - (description - "The xdg package provides lightweight helper functions in Go to get -config, data and cache directories according to the XDG Base Directory -Specification.") - (license license:expat))) - (define-public go-github-com-ssgelm-cookiejarparser (package (name "go-github-com-ssgelm-cookiejarparser") @@ -8137,16 +7578,8 @@ Specification.") (build-system go-build-system) (arguments (list - #:import-path "github.com/ssgelm/cookiejarparser" - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'fix-embed-x-net - (lambda _ - (delete-file-recursively "src/golang.org/x/net/publicsuffix/data") - (copy-recursively - #$(file-append (this-package-input "go-golang-org-x-net") - "/src/golang.org/x/net/publicsuffix/data") - "src/golang.org/x/net/publicsuffix/data")))))) + #:embed-files #~(list "children" "nodes" "text") + #:import-path "github.com/ssgelm/cookiejarparser")) (propagated-inputs (list go-golang-org-x-net)) (home-page "https://github.com/ssgelm/cookiejarparser") (synopsis "Parse a curl cookiejar with Go") @@ -8178,91 +7611,6 @@ file into a Go http.CookieJar.") array or reader.") (license license:expat))) -(define-public go-github-com-gogs-chardet - (package - (name "go-github-com-gogs-chardet") - (version "0.0.0-20211120154057-b7413eaefb8f") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/gogs/chardet") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "12j8q5wc9m4n51v2j2m40nahqdl9bh3hzpdp26clzq91kc2amiz0")))) - (build-system go-build-system) - (arguments - (list #:import-path "github.com/gogs/chardet")) - (home-page "https://github.com/gogs/chardet") - (synopsis "Character set detection for Go") - (description - "The chardet package ports character set detection from -ICU to Go.") - (license license:expat))) - -(define-public go-github-com-niemeyer-pretty - (package - (name "go-github-com-niemeyer-pretty") - (version "0.0.0-20200227124842-a10e7caefd8e") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/niemeyer/pretty") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1jmazh4xzaa3v6g46hz60q2z7nmqs9l9cxdzmmscn3kbcs2znq4v")))) - (build-system go-build-system) - (arguments - (list #:import-path "github.com/niemeyer/pretty" - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'int-to-string-with-rune - (lambda* (#:key import-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" import-path) - (substitute* "formatter.go" - (("s \\+= string\\(i\\)") - "s += string(rune(i))")))))))) - (propagated-inputs (list go-github-com-kr-text)) - (home-page "https://github.com/niemeyer/pretty") - (synopsis "Pretty-print Go values") - (description - "The pretty package provides pretty-printing for Go values. This is -useful during debugging, to avoid wrapping long output lines in the -terminal.") - (license license:expat))) - -(define-public go-github-com-lithammer-fuzzysearch - (package - (name "go-github-com-lithammer-fuzzysearch") - (version "1.1.8") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/lithammer/fuzzysearch") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0fp00gzbrr5fnz01lmkjqcs5z24zjrsp4r13ia0x0wslp5r13hv8")))) - (build-system go-build-system) - (propagated-inputs (list go-golang-org-x-text)) - (arguments - (list #:import-path "github.com/lithammer/fuzzysearch" - #:tests? #f ; Source-only package. - #:phases - #~(modify-phases %standard-phases - ;; Source-only package. - (delete 'build)))) - (home-page "https://github.com/lithammer/fuzzysearch") - (synopsis "Tiny and fast fuzzy search in Go") - (description - "A speedy fuzzy matching package for Go inspired by the JavaScript -library bevacqua/fuzzysearch.") - (license license:expat))) - ;;; ;;; 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 |