diff mbox series

[bug#68941,v2,23/44] gnu: Add node-internal-slot.

Message ID 20240208002527.27165-23-ngraves@ngraves.fr
State New
Headers show
Series [bug#68941,v2,01/44] guix: build-system: node: Add trivial-node-package helper. | expand

Commit Message

Nicolas Graves Feb. 8, 2024, 12:24 a.m. UTC
* gnu/packages/node-xyz.scm (node-internal-slot): New variable.
---
 gnu/packages/node-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 2b73c0446f..9cd9311e07 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -766,6 +766,45 @@  (define-public node-inherits
 defaulting to Node's implementation otherwise.")
     (license license:isc)))
 
+(define-public node-internal-slot
+  (package
+    (name "node-internal-slot")
+    (version "1.0.5")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ljharb/internal-slot")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1kjww0x09c3n6lzxp22ilq0c5xfpwvd0gj0wzs734qxj9yafb995"))))
+    (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"
+                "eslint"
+                "for-each"
+                "npmignore"
+                "nyc"
+                "object-inspect"
+                "safe-publish-latest"
+                "tape")))))
+       #:tests? #f))  ; FIXME tests depend on node-tape.
+    (inputs
+     (list node-has node-get-intrinsic node-side-channel))
+    (home-page "https://github.com/ljharb/internal-slot")
+    (synopsis "Private storage in Javascript")
+    (description "This package provides a Javascript function to store private
+data.  This function matches the Javascript concept of internal slots.")
+    (license license:expat)))
+
 (define-public node-irc-colors
   (package
     (name "node-irc-colors")