guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 736ba0ad32a88f67d7161c349a86c35808c91829
Author: Danny Milosavljevic <[email protected]>
AuthorDate: Fri Jan 2 23:52:12 2026 +0100
gnu: Add node-utf-8-validate.
* gnu/packages/node-xyz.scm (node-utf-8-validate): New variable.
---
gnu/packages/node-xyz.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index bd4b273064..15132c6ea1 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -4326,6 +4326,37 @@ error.name=\"CancelError\";return error})()"))
(home-page "https://undici.nodejs.org")
(license license:expat)))
+(define-public node-utf-8-validate
+ (package
+ (name "node-utf-8-validate")
+ (version "6.0.5")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/websockets/utf-8-validate")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0nca4zynp7rpjlxcwyv7fhz5zhdhhdhwwl7lqxkv2rz00rc86i22"))))
+ (build-system node-build-system)
+ (arguments
+ '(#:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'patch-dependencies 'delete-dev-dependencies
+ (lambda _
+ (modify-json (delete-dev-dependencies)))))))
+ (inputs
+ (list node-gyp-build node-addon-api))
+ (native-inputs
+ (list python))
+ (home-page "https://github.com/websockets/utf-8-validate")
+ (synopsis "UTF-8 validation for Node.js")
+ (description "This package provides efficient UTF-8 data validation for
+use with WebSocket implementations.")
+ (license license:expat)))
+
(define-public node-util-deprecate
(package
(name "node-util-deprecate")