diff options
| author | Daniel Khodabakhsh <d@niel.khodabakh.sh> | 2025-06-24 08:42:55 -0700 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-01-27 10:39:44 +0100 |
| commit | b02a4eefbd650adf14327886bc72d51ebf740c07 (patch) | |
| tree | 252ef736197165e6c4fb06c5cbcfdec5b1f26f9d /gnu | |
| parent | 029db9af52d28bdb85d80b76ba7991ed471244af (diff) | |
gnu: Add node-balanced-match.
* gnu/packages/node-xyz.scm (node-balanced-match): New variable.
Change-Id: I91006e112da75c54a777bf6da83d5d939a7de9d1
Signed-off-by: Andreas Enge <andreas@enge.fr>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/node-xyz.scm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 96cd6346e1..fd010570a0 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -198,6 +198,31 @@ ABI-stable across Node.js major versions.") (home-page (git-reference-url (origin-uri source))) (license license:expat))) +(define-public node-balanced-match + (package + (name "node-balanced-match") + (version "1.0.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/juliangruber/balanced-match") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 (base32 "0977r6hv9fyv6f8wvn31vcncxwhffnn05y0h4hmpkg8p2vs9ip0b")))) + (build-system node-build-system) + (arguments (list + #:tests? #f ; FIXME Tests require 'tape'. + #:phases #~(modify-phases %standard-phases + (add-before 'patch-dependencies 'modify-package + (lambda _ + (modify-json + (delete-dev-dependencies))))))) + (synopsis "Match balanced character pairs, like { and }") + (description "Match balanced string pairs, like { and } or <b> and </b>. Supports\ + regular expressions as well!") + (home-page (git-reference-url (origin-uri source))) + (license license:expat))) + (define-public node-bindings (package (name "node-bindings") |
