From 038e269695764319d3b5d5be7628132ae16deca4 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sat, 5 Oct 2019 15:53:47 +0200 Subject: Add bindings --- npmPackages/bindings/default.nix | 25 +++++++++++++++++++++++++ npmPackages/bootstrap.nix | 4 ++++ npmPackages/index.nix | 1 + 3 files changed, 30 insertions(+) create mode 100644 npmPackages/bindings/default.nix (limited to 'npmPackages') 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 {}; -- cgit v1.2.3