~ruther/guix-local

d8e9bf82093b71e084d842052d4918e19a020a8e — Aleksandr Lebedev 4 months ago 2880ca0
gnu: Add go-github-com-danielgtaylor-shorthand-v2.

* gnu/packages/golang-xyz.scm (go-github-com-danielgtaylor-shorthand-v2):
New variable.

Change-Id: I8f79be5cc71ed2c548539698f70061fad0f0ce59
Modified-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
@@ 5578,6 5578,44 @@ for use in templating languages (e.g. for-loop variable selection,
if-statement evaluation) so is minimal in what it supports by design.")
    (license license:expat)))

(define-public go-github-com-danielgtaylor-shorthand-v2
  (package
    (name "go-github-com-danielgtaylor-shorthand-v2")
    (version "2.2.0")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
              (url "https://github.com/danielgtaylor/shorthand")
              (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "17s4jjzfz10lavwnir8cd6nwsf15hrm38y87f7w2pi9hv40x7vn9"))
       (modules '((guix build utils)))
       (snippet
        #~(begin
            ;; Submodules with their own go.mod files and packaged separately:
            ;;
            ;; - github.com/danielgtaylor/shorthand/cmd/j
            (delete-file-recursively "cmd")))))
    (build-system go-build-system)
    (arguments
     (list
      #:import-path "github.com/danielgtaylor/shorthand/v2"
      #:test-flags
      #~(list "-vet=off")))  ;Go@1.24 forces vet, but tests are not ready yet.
    (native-inputs
     (list go-github-com-stretchr-testify))
    (propagated-inputs
     (list go-github-com-fxamacker-cbor-v2
           go-github-com-danielgtaylor-mexpr))
    (home-page "https://github.com/danielgtaylor/shorthand")
    (synopsis "Structured Data Shorthand Syntax")
    (description
     "Shorthand is a superset and friendlier variant of JSON designed with
several use-cases in mind..")
    (license license:expat)))

(define-public go-github-com-dannav-hhmmss
  (package
    (name "go-github-com-dannav-hhmmss")