guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#51838] [PATCH v6 08/41] gnu: node-binary-search-bootstrap: Use 'del


From: Philip McGrath
Subject: [bug#51838] [PATCH v6 08/41] gnu: node-binary-search-bootstrap: Use 'delete-dependencies'.
Date: Thu, 30 Dec 2021 02:38:46 -0500

gnu/packages/node.scm (node-binary-search-bootstrap)[arguments]: Use
'delete-dependencies'. Stop deleting the 'configure' phase.
---
 gnu/packages/node.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm
index e5a1c58140..32f7c8f980 100644
--- a/gnu/packages/node.scm
+++ b/gnu/packages/node.scm
@@ -415,7 +415,12 @@ (define-public node-binary-search-bootstrap
        #:tests? #f
        #:phases
        (modify-phases %standard-phases
-         (delete 'configure))))
+         (add-after 'patch-dependencies 'delete-dependencies
+           (lambda args
+             (with-atomic-json-file-replacement "package.json"
+               (lambda (pkg-meta)
+                 (delete-dependencies pkg-meta `("chai"
+                                                 "mocha")))))))))
     (home-page "https://github.com/darkskyapp/binary-search#readme";)
     (properties '((hidden? . #t)))
     (synopsis "Tiny binary search function with comparators")
-- 
2.32.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]