guix_mirror_bot pushed a commit to branch master
in repository guix.

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

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

diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 781b6bb516..e16568858f 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -164,6 +164,40 @@ It is important to remember that @emph{other} Node.js 
interfaces such as
 ABI-stable across Node.js major versions.")
     (license license:expat)))
 
+(define-public node-array-back
+  (package
+    (name "node-array-back")
+    (version "4.0.2")
+    (source (origin
+      (method git-fetch)
+      (uri (git-reference
+        (url "https://github.com/75lb/array-back";)
+        (commit (string-append "v" version))))
+      (file-name (git-file-name name version))
+      (sha256
+        (base32 "1xfg4yd155zhi0v2a26kvg3jghcim5xgpwsn4lhikisshmrmf93m"))
+      (modules '((guix build utils)))
+      (snippet #~(begin
+        (delete-file-recursively "dist")))))
+    (build-system node-build-system)
+    (native-inputs (list esbuild))
+    (arguments (list
+      #:tests? #f ; FIXME: Tests require 'esm-runner'.
+      #:phases #~(modify-phases %standard-phases
+        (add-before 'patch-dependencies 'modify-package (lambda _
+          (modify-json
+            (delete-dev-dependencies))))
+        (replace 'build (lambda _
+          (invoke
+            "esbuild"
+            "index.mjs"
+            "--format=cjs"
+            "--outfile=dist/index.js"))))))
+    (synopsis "Isomorphic load-anywhere arrayify function")
+    (description "Takes any input and guarantees an array back.")
+    (home-page (git-reference-url (origin-uri source)))
+    (license license:expat)))
+
 (define-public node-bindings
   (package
     (name "node-bindings")

Reply via email to