Subject: [bug#68941] [PATCH 09/44] gnu: Add node-get-intrinsic.

From: Nicolas Graves <[email-masked]>
Date: Tue, 6 Feb 2024 00:18:57 +0100

* gnu/packages/node-xyz.scm (node-get-intrinsic): New variable.
---
 gnu/packages/node-xyz.scm | 48 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 896f9f058d..c6e7cac861 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -491,6 +491,54 @@ (define-public node-function-bind
 Function.prototype.bind Javascript function.")
     (license license:expat)))
 
+(define-public node-get-intrinsic
+  (package
+    (name "node-get-intrinsic")
+    (version "1.2.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ljharb/get-intrinsic")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1b0h8n8azb6m1bc0lwmqm3lf2pzcplvngnsb3mfjybvkpc20ybmi"))))
+    (build-system node-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'patch-dependencies 'delete-dependencies
+           (lambda args
+             (delete-dependencies
+              '("@ljharb/eslint-config"
+                "aud"
+                "auto-changelog"
+		"call-bind"
+		"es-abstract"
+		"es-value-fixtures"
+		"eslint"
+		"evalmd"
+		"for-each"
+		"gopd"
+		"make-async-function"
+		"make-async-generator-function"
+		"make-generator-function"
+		"mock-property"
+		"npmignore"
+		"nyc"
+		"object-inspect"
+		"safe-publish-latest"
+                "tape")))))
+       #:tests? #f))  ; FIXME tests depend on node-tape.
+    (inputs
+     (list node-function-bind node-has node-has-symbols node-has-proto))
+    (home-page "https://github.com/ljharb/get-intrinsic")
+    (synopsis "Javascript symbol support predicate function")
+    (description "This package provides a Javascript function to get and
+robustly cache all language-level intrinsics at first require time.")
+    (license license:expat)))
+
 (define-public node-global-gradle-clean
   (package
     (name "node-global-gradle-clean")
-- 
2.41.0