From e3146f55e8a92347868bbe268c51b2ab5d70df70 Mon Sep 17 00:00:00 2001 From: Benjamin Date: Thu, 8 Feb 2024 21:23:39 +0000 Subject: gnu: Add go-github-com-nats-io-nats-go. * gnu/packages/golang-xyz.scm (go-github-com-nats-io-nats-go): New variable. Change-Id: Ic2897e20fdcd8d68505f8a96281071fe3de224c9 Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-xyz.scm | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index bfe9cee5e6..a1390ad093 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -27,7 +27,8 @@ #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages golang) - #:use-module (gnu packages golang-check)) + #:use-module (gnu packages golang-check) + #:use-module (gnu packages golang-crypto)) ;;; Commentary: ;;; @@ -144,6 +145,34 @@ Differentiation between text and binary files}. (description "This package provides an idiomatic Go retry module.") (license license:expat))) +(define-public go-github-com-nats-io-nats-go + (package + (name "go-github-com-nats-io-nats-go") + (version "1.31.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nats-io/nats.go") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0jqzqjwpp3p4fwpv2qcwskysnvgggp22p60zg3w25d3xsainjpbi")))) + (build-system go-build-system) + (arguments + (list + #:go go-1.20 + #:import-path "github.com/nats-io/nats.go")) + (propagated-inputs (list go-golang-org-x-text + go-github-com-nats-io-nuid + go-github-com-nats-io-nkeys + go-github-com-klauspost-compress)) + (home-page "https://github.com/nats-io/nats.go") + (synopsis "Go Client for NATS server") + (description + "This package provides a Go client for the NATS messaging system.") + (license license:asl2.0))) + (define-public go-github-com-nats-io-nuid (package (name "go-github-com-nats-io-nuid") -- cgit 1.4.1