aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-10-05 15:53:47 +0200
committerIgor Pashev <pashev.igor@gmail.com>2019-10-05 15:53:47 +0200
commit038e269695764319d3b5d5be7628132ae16deca4 (patch)
treee9edeef3664a68b1647ad60a2b35c59d63abe1ce
parent562181adf1f6bca4d13d084105d050f87d559f4d (diff)
downloadnpm.nix-038e269695764319d3b5d5be7628132ae16deca4.tar.gz
Add bindings
-rw-r--r--npmPackages/bindings/default.nix25
-rw-r--r--npmPackages/bootstrap.nix4
-rw-r--r--npmPackages/index.nix1
3 files changed, 30 insertions, 0 deletions
diff --git a/npmPackages/bindings/default.nix b/npmPackages/bindings/default.nix
new file mode 100644
index 0000000..c678a12
--- /dev/null
+++ b/npmPackages/bindings/default.nix
@@ -0,0 +1,25 @@
+{ fetchurl, buildNpmPackage, file-uri-to-path }:
+
+buildNpmPackage {
+ pname = "bindings";
+ version = "1.5.0";
+ src = fetchurl {
+ url = "https://github.com/TooTallNate/node-bindings/archive/1.5.0.tar.gz";
+ sha256 = "1l4581b6284fgjixq7ji9km9mzrqq13knz3g4a9a0s2z40lrwpwk";
+ };
+
+ meta = {
+ description = "Helper module for loading your native module's .node file";
+ homepage = "https://github.com/TooTallNate/node-bindings";
+ license = "MIT";
+ };
+
+ npmInputs = [
+ file-uri-to-path
+ ];
+
+ files = [
+ "bindings.js"
+ ];
+}
+
diff --git a/npmPackages/bootstrap.nix b/npmPackages/bootstrap.nix
index 9b4b793..feffbe3 100644
--- a/npmPackages/bootstrap.nix
+++ b/npmPackages/bootstrap.nix
@@ -50,6 +50,10 @@ in rec {
xo = _dummy_xo;
});
+ _bindings = dontCheck (callPackage ./bindings {
+ file-uri-to-path = _file-uri-to-path;
+ });
+
_callsites = dontCheck (callPackage ./callsites {
ava = _dummy_ava;
xo = _dummy_xo;
diff --git a/npmPackages/index.nix b/npmPackages/index.nix
index 269acc7..7dd4a30 100644
--- a/npmPackages/index.nix
+++ b/npmPackages/index.nix
@@ -5,6 +5,7 @@ let
in {
ansi-styles = callPackage ./ansi-styles {};
async-foreach = callPackage ./async-foreach {};
+ bindings = callPackage ./bindings {};
callsites = callPackage ./callsites {};
chartjs-color-string = callPackage ./chartjs-color-string {};
color-convert = callPackage ./color-convert {};