aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {};