aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorPhilip McGrath <philip@philipmcgrath.com>2022-01-08 03:42:07 -0500
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2022-01-09 02:07:14 +0100
commit5524733bb2653f3a3875812e41ae3566050666c5 (patch)
tree685b82667ece8d1ca63d1dffcf7de777438d1ae6 /gnu
parent3bd092c0bf8dd4d315fc596a60e3ad5976b1e769 (diff)
downloadguix-5524733bb2653f3a3875812e41ae3566050666c5.tar
guix-5524733bb2653f3a3875812e41ae3566050666c5.tar.gz
gnu: Add node-safe-buffer.
* gnu/packages/node-xyz.scm (node-safe-buffer): New variable. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/node-xyz.scm29
1 files changed, 29 insertions, 0 deletions
diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 0e33f64dc9..f4af03eb87 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -391,6 +391,35 @@ Node's @code{inherits} constructer that can be used in browsers, while
defaulting to Node's implementation otherwise.")
(license license:isc)))
+(define-public node-safe-buffer
+ (package
+ (name "node-safe-buffer")
+ (version "5.2.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/feross/safe-buffer")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0r26m0nl41h90ihnl2xf0cqs6z9z7jb87dl5j8yqb7887r9jlbpi"))))
+ (build-system node-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-after 'patch-dependencies 'delete-dependencies
+ (lambda args
+ (delete-dependencies '("tape" "standard")))))
+ #:tests? #f))
+ (home-page "https://github.com/feross/safe-buffer")
+ (synopsis "Buffer creation with explicit semantics")
+ (description "This package provides a drop-in replacement for Node.js
+@code{Buffer} API, which provides newer, explicit constructors (such as
+@code{Buffer.alloc(SIZE)}) in older versions.")
+ (license license:expat)))
+
(define-public node-irc-colors
(package
(name "node-irc-colors")