From 9b2d9cbdd177b71d295b144ce12e9173d8248e6b Mon Sep 17 00:00:00 2001 From: Daniel Khodabakhsh Date: Tue, 24 Jun 2025 17:25:10 -0700 Subject: [PATCH] gnu: Add node-chalk. * gnu/packages/node-xyz.scm (node-chalk): New variable. Change-Id: Ia267af1f10b4b322682ceb44d0bae7d9ee0dc30b --- gnu/packages/node-xyz.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) 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")