summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorDaniel Khodabakhsh <d@niel.khodabakh.sh>2025-06-24 08:37:23 -0700
committerAndreas Enge <andreas@enge.fr>2026-01-27 10:39:44 +0100
commit9ac0df45ee41fd221d187d52a7c169afe5af3825 (patch)
tree51cac10f92b644dcd5291d9922e9fa94eadfb54a /gnu
parent145d4ca98e2f9d348543a05999dce645a2743008 (diff)
gnu: Add node-array-back.
* gnu/packages/node-xyz.scm (node-array-back): New variable. Change-Id: I348ce710940d8309c1fb55313425541061644228 Signed-off-by: Andreas Enge <andreas@enge.fr>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/node-xyz.scm34
1 files changed, 34 insertions, 0 deletions
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")