[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#51838] [PATCH v6 22/41] gnu: Add node-nan.
From: |
Philip McGrath |
Subject: |
[bug#51838] [PATCH v6 22/41] gnu: Add node-nan. |
Date: |
Thu, 30 Dec 2021 02:39:00 -0500 |
* gnu/packages/node-xyz.scm (node-nan): New variable.
---
gnu/packages/node-xyz.scm | 46 +++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 3f0ec35547..4eda001dc4 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -596,3 +596,49 @@ (define-public node-irc
(description "@code{node-irc} is an IRC client library for Node.js.
It has functions for joining, parting, talking, and many other IRC commands.")
(license license:gpl3+)))
+
+(define-public node-nan
+ (package
+ (name "node-nan")
+ (version "2.15.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/nodejs/nan";)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "18xslh9va5ld872scrp5y4251ax9s3c6qh0lnl1200lpzbsxy7yd"))))
+ (build-system node-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'patch-dependencies 'delete-dependencies
+ (lambda args
+ (with-atomic-json-file-replacement "package.json"
+ (lambda (pkg-meta)
+ (delete-dependencies
+ pkg-meta
+ '("bindings"
+ "commander"
+ "glob"
+ "request"
+ "node-gyp" ;; would be needed for tests
+ "tap"
+ "xtend")))))))
+ ;; tests need tap and other dependencies
+ #:tests? #f))
+ (inputs
+ (list node-readable-stream))
+ (home-page "https://github.com/nodejs/nan";)
+ (synopsis "Native Abstractions for Node.js")
+ (description "Native Abstractions for Node.js (``NaN'') provides a header
+file filled with macro and utility goodness for making add-on development for
+Node.js easier across versions. The goal of this project is to store all logic
+necessary to develop native Node.js addons without having to inspect
+@code{NODE_MODULE_VERSION} and get yourself into a macro-tangle.
+
+This project also contains some helper utilities that make addon development a
+bit more pleasant.")
+ (license license:expat)))
--
2.32.0
- [bug#51838] [PATCH v6 16/41] gnu: node-irc-colors: Use 'delete-dependencies'., (continued)
- [bug#51838] [PATCH v6 16/41] gnu: node-irc-colors: Use 'delete-dependencies'., Philip McGrath, 2021/12/30
- [bug#51838] [PATCH v6 17/41] gnu: node-irc: Use 'delete-dependencies'., Philip McGrath, 2021/12/30
- [bug#51838] [PATCH v6 18/41] gnu: Add node-inherits., Philip McGrath, 2021/12/30
- [bug#51838] [PATCH v6 19/41] gnu: Add node-safe-buffer., Philip McGrath, 2021/12/30
- [bug#51838] [PATCH v6 21/41] gnu: Add node-readable-stream., Philip McGrath, 2021/12/30
- [bug#51838] [PATCH v6 20/41] gnu: Add node-string-decoder., Philip McGrath, 2021/12/30
- [bug#51838] [PATCH v6 24/41] gnu: Add node-addon-api., Philip McGrath, 2021/12/30
- [bug#51838] [PATCH v6 23/41] gnu: Add node-openzwave-shared., Philip McGrath, 2021/12/30
- [bug#51838] [PATCH v6 25/41] gnu: Add node-sqlite3., Philip McGrath, 2021/12/30
- [bug#51838] [PATCH v6 26/41] gnu: Add node-file-uri-to-path., Philip McGrath, 2021/12/30
- [bug#51838] [PATCH v6 22/41] gnu: Add node-nan.,
Philip McGrath <=
- [bug#51838] [PATCH v6 32/41] gnu: Add node-serialport-parser-delimiter., Philip McGrath, 2021/12/30
- [bug#51838] [PATCH v6 27/41] gnu: Add node-bindings., Philip McGrath, 2021/12/30
- [bug#51838] [PATCH v6 31/41] gnu: Add node-serialport-binding-abstract., Philip McGrath, 2021/12/30
- [bug#51838] [PATCH v6 28/41] gnu: Add node-segfault-handler., Philip McGrath, 2021/12/30
- [bug#51838] [PATCH v6 29/41] gnu: Add node-ms., Philip McGrath, 2021/12/30
- [bug#51838] [PATCH v6 30/41] gnu: Add node-debug., Philip McGrath, 2021/12/30
- [bug#51838] [PATCH v6 35/41] gnu: Add node-serialport-parser-regex., Philip McGrath, 2021/12/30
- [bug#51838] [PATCH v6 33/41] gnu: Add node-serialport-parser-readline., Philip McGrath, 2021/12/30
- [bug#51838] [PATCH v6 34/41] gnu: Add node-serialport-bindings., Philip McGrath, 2021/12/30
- [bug#51838] [PATCH v6 36/41] gnu: Add node-serialport-parser-ready., Philip McGrath, 2021/12/30