guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 145d4ca98e2f9d348543a05999dce645a2743008
Author: Daniel Khodabakhsh <[email protected]>
AuthorDate: Tue Jun 24 08:37:23 2025 -0700

    gnu: Add node-buffer-from.
    
    * gnu/packages/node-xyz.scm (node-buffer-from): New variable.
    
    Change-Id: Id90afe871a323fa513832544c222560a0954da0a
    Signed-off-by: Andreas Enge <[email protected]>
---
 gnu/packages/node-xyz.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 99aade42db..781b6bb516 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -216,6 +216,29 @@ addons in a wide array of potential locations.")
 and fancy character sets, signed or unsigned data and has tests, for Node.")
     (license license:expat)))
 
+(define-public node-buffer-from
+  (package
+    (name "node-buffer-from")
+    (version "1.1.2")
+    (source (origin
+      (method git-fetch)
+      (uri (git-reference
+        (url "https://github.com/LinusU/buffer-from";)
+        (commit (string-append "v" version))))
+      (file-name (git-file-name name version))
+      (sha256 (base32 
"15x3iix1z2ggfq3gmnjnz809k02g0zbkf391g1if8s7d3q0r0w1b"))))
+    (build-system node-build-system)
+    (arguments (list
+      #:tests? #f ; FIXME: Tests require 'standard'.
+      #:phases #~(modify-phases %standard-phases
+        (add-before 'patch-dependencies 'modify-package (lambda _
+          (modify-json
+            (delete-dev-dependencies)))))))
+    (synopsis "A ponyfill for Buffer.from")
+    (description "A ponyfill for Buffer.from, uses native implementation if 
available.")
+    (home-page (git-reference-url (origin-uri source)))
+    (license license:expat)))
+
 (define-public node-color-name
   (package
     (name "node-color-name")

Reply via email to