[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#68941] [PATCH 09/44] gnu: Add node-get-intrinsic.
From: |
Nicolas Graves |
Subject: |
[bug#68941] [PATCH 09/44] gnu: Add node-get-intrinsic. |
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
- [bug#68941] [PATCH 00/44] Node : a solution for tiny packages., Nicolas Graves, 2024/02/05
- [bug#68941] [PATCH 01/44] guix: build-system: node: Add node-trivial-package helper., Nicolas Graves, 2024/02/05
- [bug#68941] [PATCH 03/44] gnu: Add node-function-bind., Nicolas Graves, 2024/02/05
- [bug#68941] [PATCH 04/44] gnu: Add node-has-proto., Nicolas Graves, 2024/02/05
- [bug#68941] [PATCH 08/44] gnu: Add node-is-callable., Nicolas Graves, 2024/02/05
- [bug#68941] [PATCH 09/44] gnu: Add node-get-intrinsic.,
Nicolas Graves <=
- [bug#68941] [PATCH 07/44] gnu: Add node-has-tostringtag., Nicolas Graves, 2024/02/05
- [bug#68941] [PATCH 05/44] gnu: Add node-has., Nicolas Graves, 2024/02/05
- [bug#68941] [PATCH 06/44] gnu: Add node-has-symbols., Nicolas Graves, 2024/02/05
- [bug#68941] [PATCH 10/44] gnu: Add node-is-symbol., Nicolas Graves, 2024/02/05
- [bug#68941] [PATCH 11/44] gnu: Add node-for-each., Nicolas Graves, 2024/02/05
- [bug#68941] [PATCH 14/44] gnu: Add node-call-bind., Nicolas Graves, 2024/02/05
- [bug#68941] [PATCH 12/44] gnu: Add node-available-typed-arrays., Nicolas Graves, 2024/02/05
- [bug#68941] [PATCH 13/44] gnu: Add node-gopd., Nicolas Graves, 2024/02/05
- [bug#68941] [PATCH 15/44] gnu: Add node-object-inspect., Nicolas Graves, 2024/02/05
- [bug#68941] [PATCH 17/44] gnu: Add node-which-typed-array., Nicolas Graves, 2024/02/05