diff options
| author | Daniel Khodabakhsh <d@niel.khodabakh.sh> | 2025-06-24 17:25:10 -0700 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-01-27 10:39:46 +0100 |
| commit | ee7d8a74a6e5f70de4ffc2fc471206586e7db9cd (patch) | |
| tree | f5da5bafee134af80161fafcf576db4723381c20 /gnu/packages/node-xyz.scm | |
| parent | a93c9ae66c331f4c8e7b1888d276fd8f226f6915 (diff) | |
gnu: Add node-chalk.
* gnu/packages/node-xyz.scm (node-chalk): New variable.
Change-Id: Ia267af1f10b4b322682ceb44d0bae7d9ee0dc30b
Signed-off-by: Andreas Enge <andreas@enge.fr>
Diffstat (limited to 'gnu/packages/node-xyz.scm')
| -rw-r--r-- | gnu/packages/node-xyz.scm | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 86c836529d2..f85afa188b5 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -349,6 +349,35 @@ and fancy character sets, signed or unsigned data and has tests, for Node.") (home-page (git-reference-url (origin-uri source))) (license license:expat))) +(define-public node-chalk + (package + (name "node-chalk") + (version "2.4.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/chalk/chalk") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1isx2l8a11k5arz1p3kd7mbdb8kjr85l1axdm7yya57vwlkdkc2y")))) + (build-system node-build-system) + (inputs (list + node-ansi-styles + node-supports-color + node-escape-string-regexp)) + (arguments (list + #:tests? #f ; FIXME: Tests reuire 'xo', 'c8', 'ava', and 'tsd'. + #:phases #~(modify-phases %standard-phases + (add-before 'patch-dependencies 'modify-package (lambda _ + (modify-json + (delete-dev-dependencies))))))) + (synopsis "Terminal string styling library") + (description "Chalk comes with an easy to use composable API where you just chain and\ + nest the styles you want.") + (home-page (git-reference-url (origin-uri source))) + (license license:expat))) + (define-public node-color-convert (package (name "node-color-convert") |
