guix_mirror_bot pushed a commit to branch master
in repository guix.
commit a16e14995e1882dbabfb004c6b9da4098062a84f
Author: Nicolas Graves <[email protected]>
AuthorDate: Sat Jul 11 23:54:53 2026 +0200
gnu: node-debug-bootstrap: Avoid node-build-system.
* gnu/packages/node.scm (node-debug-bootstrap)
[name]: Add -bootstrap suffix.
[build-system]: Switch to gnu-build-system + bootstrap-node-phases.
[arguments]: Improve style.
{node}: Drop it.
{phases}: Migrate accordingly.
[native-inputs]: Add node-bootstrap.
Suggested-By-AI: Finding out I had to resolve modules.
Change-Id: I855bcb7061046f99df4ea7fff5de506f3a6fb824
Signed-off-by: Jelle Licht <[email protected]>
---
gnu/packages/node.scm | 49 +++++++++++++++++++++++++++----------------------
1 file changed, 27 insertions(+), 22 deletions(-)
diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm
index 439855498f8..b00344d1361 100644
--- a/gnu/packages/node.scm
+++ b/gnu/packages/node.scm
@@ -492,7 +492,7 @@ formats to milliseconds.")
(define-public node-debug-bootstrap
(package
- (name "node-debug")
+ (name "node-debug-bootstrap")
(version "4.3.0")
(source
(origin
@@ -502,28 +502,33 @@ formats to milliseconds.")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32
- "08g52r1d4yqcsfdfb7n5if33d4cghaq75gx5n9hj6m6fd8jfp2pi"))))
- (build-system node-build-system)
+ (base32 "08g52r1d4yqcsfdfb7n5if33d4cghaq75gx5n9hj6m6fd8jfp2pi"))))
+ (build-system gnu-build-system)
(arguments
- `(#:node ,node-bootstrap
- #:tests? #f
- #:phases
- (modify-phases %standard-phases
- (add-after 'patch-dependencies 'delete-dependencies
- (lambda args
- (modify-json (delete-dependencies
- `("brfs"
- "browserify"
- "coveralls"
- "istanbul"
- "karma"
- "karma-browserify"
- "karma-chrome-launcher"
- "karma-mocha"
- "mocha"
- "mocha-lcov-reporter"
- "xo"))))))))
+ (list
+ #:tests? #f
+ #:phases
+ #~(modify-phases #$bootstrap-node-phases
+ (add-before 'configure 'patch-dependencies
+ (lambda* (#:key inputs #:allow-other-keys)
+ #$(delete-dependencies* (list "brfs"
+ "browserify"
+ "coveralls"
+ "istanbul"
+ "karma"
+ "karma-browserify"
+ "karma-chrome-launcher"
+ "karma-mocha"
+ "mocha"
+ "mocha-lcov-reporter"
+ "xo"))
+ ;; Resolve modules manually.
+ (let ((module (search-input-directory inputs
+ "lib/node_modules/ms")))
+ (substitute* "package.json"
+ (("\"ms\": \".*")
+ (format #f "\"ms\": \"file://~a\"" module)))))))))
+ (native-inputs (list node-bootstrap))
(inputs (list node-ms-bootstrap))
(home-page "https://github.com/visionmedia/debug#readme")
(properties '((hidden? . #t)))