From e78fb8223f1ee8a68f5498040564870c1684a4d5 Mon Sep 17 00:00:00 2001 From: Jesse Eisses Date: Fri, 26 Apr 2024 10:01:50 +0200 Subject: gnu: Add go-nhooyr-io-websocket. * gnu/packages/golang-web.scm (go-nhooyr-io-websocket): New variable. Change-Id: Ifced88b4d916b8593e4b65022cf419c8ae18a769 Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-web.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index f2a83226d4..d0f51cfd79 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -2093,6 +2093,33 @@ Signing and Encryption set of standards. This includes support for JSON Web Encryption, JSON Web Signature, and JSON Web Token standards.") (license license:asl2.0))) +(define-public go-nhooyr-io-websocket + (package + (name "go-nhooyr-io-websocket") + (version "1.8.11") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nhooyr/websocket") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "019pm2bkzwyvzl61127nqzihchk35q5xh57wy50aa2syn9214fxm")))) + (build-system go-build-system) + (arguments + (list + ;; Tests require additional dependencies like `wasmbrowsertest`. + #:tests? #f + #:import-path "nhooyr.io/websocket")) + (home-page "https://nhooyr.io/websocket") + (synopsis "Minimal and idiomatic WebSocket library for Go") + (description + "Package websocket implements the +@@url{https://rfc-editor.org/rfc/rfc6455.html,RFC 6455} @code{WebSocket} +protocol.") + (license license:isc))) + ;;; ;;; Executables: ;;; -- cgit v1.2.3