andreas pushed a commit to branch master in repository guix. commit 4b47728a6b58a72a560f5426158e93ba08400d8c Author: Nicolas Graves via Guix-patches via <guix-patc...@gnu.org> AuthorDate: Mon Mar 24 08:29:12 2025 +0100
import: npm-binary: Fix import. This is a follow-up to 0881a674cce3af6ebe0c1c85000e2726cbe6fc54. * guix/import/npm-binary.scm (npm-package->package-sexp): Use modify-json. * tests/npm-binary.scm (npm-binary->guix-package test): Use modify-json. Change-Id: I70523a890948b218c0d82d94a6edf8775521473e Signed-off-by: Jelle Licht <jli...@fsfe.org> --- guix/import/npm-binary.scm | 3 ++- tests/npm-binary.scm | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/guix/import/npm-binary.scm b/guix/import/npm-binary.scm index 92ac7d338e..c43b84f3d5 100644 --- a/guix/import/npm-binary.scm +++ b/guix/import/npm-binary.scm @@ -228,7 +228,8 @@ ((dev-names ...) `((add-after 'patch-dependencies 'delete-dev-dependencies (lambda _ - (delete-dependencies '(,@(reverse dev-names)))))))))) + (modify-json + (delete-dependencies '(,@(reverse dev-names))))))))))) (values `(package (name ,name) diff --git a/tests/npm-binary.scm b/tests/npm-binary.scm index cf85e572b3..0cc2864546 100755 --- a/tests/npm-binary.scm +++ b/tests/npm-binary.scm @@ -133,7 +133,8 @@ (delete 'build) (add-after 'patch-dependencies 'delete-dev-dependencies (lambda _ - (delete-dependencies '("node-megabuilder")))))))) + (modify-json + (delete-dependencies '("node-megabuilder"))))))))) (inputs (list node-bar-0.1.2)) (home-page "https://github.com/quartz/foo") (synopsis "General purpose utilities to foo your bars")