~ruther/guix-local

062e0f13bf2ca53e88bff386e27952a34e42a46c — quanrong 7 months ago f3aca26
gnu: Add go-github-com-urfave-cli-altsrc-v3.

* gnu/packages/golang-xyz.scm (go-github-com-urfave-cli-altsrc-v3): New variable.

Change-Id: I8f84face3baf4f2c598571d2c4c5991e0f4ba826
Co-authored-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 38 insertions(+), 0 deletions(-)

M gnu/packages/golang-xyz.scm
M gnu/packages/golang-xyz.scm => gnu/packages/golang-xyz.scm +38 -0
@@ 67,6 67,7 @@
;;; Copyright © 2025 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2025 Tomas Volf <~@wolfsden.cz>
;;; Copyright © 2025 Arthur Rodrigues <arthurhdrodrigues@proton.me>
;;; Copyright © 2025 Tomás Ortín Fernández <quanrong@mailbox.org>
;;;
;;; This file is part of GNU Guix.
;;;


@@ 19873,6 19874,43 @@ distributable command line applications in an expressive way.")
      #~(list "-vet=off")))
    (propagated-inputs '())))

(define-public go-github-com-urfave-cli-altsrc-v3
  (package
    (name "go-github-com-urfave-cli-altsrc-v3")
    (version "3.0.1")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/urfave/cli-altsrc")
             (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "0nk1c31li7yijfa2p9s2723p5727ad3fl80dj6a5cwjg1qkbsl12"))))
    (build-system go-build-system)
    (arguments
     (list
      #:tests? #f ;tests need git in PATH
      #:import-path "github.com/urfave/cli-altsrc/v3"
      ;; Pattern autocomplete: cannot embed directory autocomplete: contains
      ;; no embeddable files.
      #:embed-files
      #~(list "bash_autocomplete"
              "powershell_autocomplete.ps1"
              "zsh_autocomplete")))
    (native-inputs
     (list go-github-com-stretchr-testify
           go-github-com-urfave-cli-v3))
    (propagated-inputs
     (list go-github-com-burntsushi-toml
           go-gopkg-in-yaml-v3))
    (home-page "https://github.com/urfave/cli-altsrc")
    (synopsis "Read values for urfave/cli/v3 flags from config files")
    (description
     "This package provides an extension for https://github.com/urfave/cli, to
read flag values from JSON, YAML, and TOML.")
    (license license:expat)))

(define-public go-github-com-valyala-bytebufferpool
  (package
    (name "go-github-com-valyala-bytebufferpool")