gnu: Add go-zgo-at-zstd.

* gnu/packages/golang-xyz.scm (go-zgo-at-zstd): New variable.

Change-Id: Ib9662c07d532944eba9da2c7b62c81fae656846a
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
gemmaro 2024-08-30 00:14:05 +09:00 committed by Sharlatan Hellseher
parent 534b74932d
commit db85958f66
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -7400,6 +7400,40 @@ (define-public go-zgo-at-termtext
terminals.")
(license license:expat)))
(define-public go-zgo-at-zstd
(package
(name "go-zgo-at-zstd")
(version "0.0.0-20240922235538-9a93b98b4725")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/arp242/zstd")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "06nqiv1pkqnnqa3v6rlf0qfxgfd63vi4vv36acq54dxswxhcasaz"))))
(build-system go-build-system)
(arguments
(list
#:import-path "zgo.at/zstd"
#:phases
#~(modify-phases %standard-phases
;; XXX: Replace when go-build-system supports nested path.
(replace 'check
(lambda* (#:key import-path tests? #:allow-other-keys)
(when tests?
(with-directory-excursion (string-append "src/" import-path)
(invoke "go" "test" "-v"
"-skip" "TestExists"
"./..."))))))))
(home-page "https://github.com/arp242/zstd")
(synopsis "Extensions to Go's standard library")
(description
"Package @samp{zstd} is a collection of extensions to Go's standard
library.")
(license license:expat)))
;;;
;;; Executables:
;;;