1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: Add node-reduce-flatten.

* gnu/packages/node-xyz.scm (node-reduce-flatten): New variable.

Change-Id: Ib8887489b53f1e4cad033ddeffe597a7d3ad6dfa
Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
Daniel Khodabakhsh
2025-06-24 08:21:39 -07:00
committed by Andreas Enge
parent 5eab0ad523
commit a98bfe26fb

View File

@@ -953,6 +953,35 @@ written in Javascript.")
that behaves the same across different versions.")
(license license:expat)))
(define-public node-reduce-flatten
(package
(name "node-reduce-flatten")
(version "2.0.0")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/75lb/reduce-flatten")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0xw23djgi8agv06bbjc3x6wsca1xxnksbv7zd6cgxvmw15xqyb68"))))
(build-system node-build-system)
(arguments (list
#:tests? #f ; FIXME: Tests require 'test-runner'.
#:phases #~(modify-phases %standard-phases
(add-before 'patch-dependencies 'modify-package (lambda _
(modify-json
(delete-dev-dependencies)))))))
(synopsis "Flatten an array into the supplied array")
(description "Isomorphic map-reduce function to flatten an array into the supplied\
array.
Example
> numbers = [ 1, 2, [ 3, 4 ], 5 ]
> numbers.reduce(flatten, [])
[ 1, 2, 3, 4, 5 ]")
(home-page (git-reference-url (origin-uri source)))
(license license:expat)))
(define-public node-resolve-protobuf-schema
(package
(name "node-resolve-protobuf-schema")