Subject: [bug#67834] [PATCH] gnu: Add node-path-key.

From: Rikard Nordgren <[email-masked]>
Date: Fri, 15 Dec 2023 07:29:05 +0000

* gnu/packages/node-xyz.scm (node-path-key): New variable

Change-Id: I0fc1cbbcf82622f4bf2dd6d2ca46b22605ea964a
---
 gnu/packages/node-xyz.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 6c16417309..9146daef8a 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -631,6 +631,31 @@ (define-public node-once
 if desired.")
     (license license:isc)))
 
+(define-public node-path-key
+  (package
+    (name "node-path-key")
+    (version "4.0.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/sindresorhus/path-key")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "09f4rf70qhq234fcc3pw9nrqic8cb75pk2b6wfnpr96v0r1h8d8g"))))
+    (build-system node-build-system)
+    (arguments
+     '(#:tests? #f
+       #:phases (modify-phases %standard-phases
+                  (add-after 'patch-dependencies 'delete-dependencies
+                    (lambda _
+                      (delete-dependencies '("@types/node" "ava" "tsd" "xo")))))))
+    (home-page "https://github.com/sindresorhus/path-key")
+    (synopsis "Get the PATH environment variable key cross-platform")
+    (description "Get the PATH environment variable key cross-platform")
+    (license license:expat)))
+
 (define-public node-ieee754
   (package
     (name "node-ieee754")

base-commit: 23627b1706af25a0a30b96b9169a3495279aff1b
-- 
2.34.1