Subject: [bug#48396] [PATCH 4/4] gnu: Added node-16.1.

From: Martin Becze <[email-masked]>
Date: Thu, 13 May 2021 08:06:22 -0500

* gnu/packages/node.scm (node-16.1): New variable.
---
 gnu/packages/node.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm
index d7b46190e4..9d2432e97a 100644
--- a/gnu/packages/node.scm
+++ b/gnu/packages/node.scm
@@ -728,6 +728,32 @@ source files.")
      (alist-replace "python" (list python-3)
                     (package-native-inputs node)))))
 
+(define-public node-16.1
+  (package
+    (inherit node-lts)
+    (version "16.1.0")
+    (source
+     (origin
+       (inherit (package-source node-lts))
+       (uri (string-append "https://nodejs.org/dist/v" version
+                           "/node-v" version ".tar.xz"))
+       (sha256
+        (base32 "0z0808mw674mshgbmhgngqfkrdix3b61f77xcdz7bwf1j87j7ad0"))))
+    (arguments
+     (substitute-keyword-arguments (package-arguments node-lts)
+       ((#:phases phases)
+        `(modify-phases ,phases
+           (replace 'delete-cluster-tests
+             (lambda _
+               (for-each delete-file
+                         '("test/parallel/test-http-methods.js"
+                           "test/parallel/test-stdin-from-file-spawn.js"
+                           "test/parallel/test-cluster-primary-error.js"
+                           "test/parallel/test-cluster-primary-kill.js"))))))))
+    (inputs
+     (alist-replace "llhttp" (list llhttp-6.0)
+                    (package-inputs node-lts)))))
+
 (define-public libnode
   (package/inherit node
     (name "libnode")
-- 
2.31.1