diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2026-03-18 09:21:30 +0100 |
|---|---|---|
| committer | Maxim Cournoyer <maxim@guixotic.coop> | 2026-08-27 10:59:21 +0900 |
| commit | 6e521fffa4effd01df6bba3247411936dfcb6208 (patch) | |
| tree | 359b13a34d13bf4a9afb638881b417b42889dd0f | |
| parent | ddb9990e21c6f113a5cb66bad571af5ce47afd13 (diff) | |
gnu: packages: Replace replace-fields by replace-json-fields.
* gnu/packages/node-xyz.scm: Replace all uses of replace-fields by
replace-json-fields.
Change-Id: I109f82432f65c2e681e0c988e008ac848ad30f4c
Signed-off-by: Jelle Licht <jlicht@fsfe.org>
| -rw-r--r-- | gnu/packages/node-xyz.scm | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index aa28311249a..8ef1c11116c 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm | |||
| @@ -145,8 +145,9 @@ architecture supporting plugins.") | |||
| 145 | "semver")) | 145 | "semver")) |
| 146 | ;; We can't run the js-based tests, | 146 | ;; We can't run the js-based tests, |
| 147 | ;; but we can still do the C++ parts | 147 | ;; but we can still do the C++ parts |
| 148 | (replace-fields (list (cons | 148 | (replace-json-fields |
| 149 | "scripts.test" "echo stopping after pretest on Guix"))))))))) | 149 | (list (cons "scripts.test" |
| 150 | "echo stopping after pretest on Guix"))))))))) | ||
| 150 | (home-page "https://github.com/nodejs/node-addon-api") | 151 | (home-page "https://github.com/nodejs/node-addon-api") |
| 151 | (synopsis "Node.js API (Node-API) header-only C++ wrappers") | 152 | (synopsis "Node.js API (Node-API) header-only C++ wrappers") |
| 152 | (description "This module contains header-only C++ wrapper classes which | 153 | (description "This module contains header-only C++ wrapper classes which |
| @@ -3569,7 +3570,7 @@ it to make a new binding for a different platform or underling technology."))) | |||
| 3569 | (lambda args | 3570 | (lambda args |
| 3570 | (modify-json "package.json" | 3571 | (modify-json "package.json" |
| 3571 | (delete-json-fields '(("scripts" "install"))) | 3572 | (delete-json-fields '(("scripts" "install"))) |
| 3572 | (replace-fields '(("gypfile" . #f))))))) | 3573 | (replace-json-fields '(("gypfile" . #f))))))) |
| 3573 | #:tests? #f)) | 3574 | #:tests? #f)) |
| 3574 | (synopsis "Abstract base class for Node SerialPort bindings") | 3575 | (synopsis "Abstract base class for Node SerialPort bindings") |
| 3575 | (description "Node SerialPort is a modular suite of Node.js packages for | 3576 | (description "Node SerialPort is a modular suite of Node.js packages for |
| @@ -3793,7 +3794,8 @@ connection."))) | |||
| 3793 | (add-before 'patch-dependencies 'modify-package (lambda _ | 3794 | (add-before 'patch-dependencies 'modify-package (lambda _ |
| 3794 | (modify-json | 3795 | (modify-json |
| 3795 | (delete-dev-dependencies) | 3796 | (delete-dev-dependencies) |
| 3796 | (replace-fields (list (cons "scripts.test" "node test/run-tests.js")))))) | 3797 | (replace-json-fields |
| 3798 | (list (cons "scripts.test" "node test/run-tests.js")))))) | ||
| 3797 | (replace 'build (lambda _ | 3799 | (replace 'build (lambda _ |
| 3798 | (for-each | 3800 | (for-each |
| 3799 | (match-lambda ((name parameters) | 3801 | (match-lambda ((name parameters) |
| @@ -4147,7 +4149,7 @@ sequences.") | |||
| 4147 | (modify-json | 4149 | (modify-json |
| 4148 | (delete-dev-dependencies) | 4150 | (delete-dev-dependencies) |
| 4149 | (delete-json-fields (list "type")) | 4151 | (delete-json-fields (list "type")) |
| 4150 | (replace-fields (list (cons "version" #$version)))))) | 4152 | (replace-json-fields (list (cons "version" #$version)))))) |
| 4151 | (replace 'build (lambda _ | 4153 | (replace 'build (lambda _ |
| 4152 | (define problem-file "strnum.js") | 4154 | (define problem-file "strnum.js") |
| 4153 | (substitute* problem-file (("^export default ") "")) | 4155 | (substitute* problem-file (("^export default ") "")) |
| @@ -4290,10 +4292,10 @@ tablets. | |||
| 4290 | (add-after 'unpack 'setup | 4292 | (add-after 'unpack 'setup |
| 4291 | (lambda _ | 4293 | (lambda _ |
| 4292 | (chdir (string-append "types/" #$type)) | 4294 | (chdir (string-append "types/" #$type)) |
| 4293 | (modify-json | 4295 | (modify-json "package.json" |
| 4294 | (delete-dev-dependencies) | 4296 | (delete-dev-dependencies) |
| 4295 | (replace-fields (list | 4297 | (replace-json-fields |
| 4296 | (cons "version" #$version))))))))) | 4298 | (list (cons "version" #$version))))))))) |
| 4297 | (synopsis (string-append "TypeScript definitions for " type)) | 4299 | (synopsis (string-append "TypeScript definitions for " type)) |
| 4298 | (description (string-append "Typescript definition files (*.d.ts) for '" | 4300 | (description (string-append "Typescript definition files (*.d.ts) for '" |
| 4299 | type "'.")) | 4301 | type "'.")) |
| @@ -4569,7 +4571,7 @@ function with browser support.") | |||
| 4569 | (add-after 'patch-dependencies 'delete-dev-dependencies | 4571 | (add-after 'patch-dependencies 'delete-dev-dependencies |
| 4570 | (lambda _ | 4572 | (lambda _ |
| 4571 | (modify-json (delete-dev-dependencies) | 4573 | (modify-json (delete-dev-dependencies) |
| 4572 | (replace-fields | 4574 | (replace-json-fields |
| 4573 | '(("scripts.install:l10n-dev" . "true"))))))))) | 4575 | '(("scripts.install:l10n-dev" . "true"))))))))) |
| 4574 | (home-page "https://github.com/Microsoft/vscode-l10n") | 4576 | (home-page "https://github.com/Microsoft/vscode-l10n") |
| 4575 | (synopsis "Helper library to assist in localizing VS Code subprocesses") | 4577 | (synopsis "Helper library to assist in localizing VS Code subprocesses") |
