aboutsummaryrefslogtreecommitdiff
path: root/npmPackages
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-10-12 19:41:10 +0200
committerIgor Pashev <pashev.igor@gmail.com>2019-10-12 19:43:59 +0200
commit4d695123d70110bd736fd3dc76bcc0e7fa561f64 (patch)
tree17756f4ef1e80d39d1c71dbeba4a6ed0291ce5d8 /npmPackages
parentb7f4d97644ef8b1ce76512eb5c29d0e75f7887d9 (diff)
downloadnpm.nix-4d695123d70110bd736fd3dc76bcc0e7fa561f64.tar.gz
Add balanced-match
Diffstat (limited to 'npmPackages')
-rw-r--r--npmPackages/balanced-match/default.nix27
-rw-r--r--npmPackages/bootstrap.nix6
-rw-r--r--npmPackages/index.nix1
3 files changed, 34 insertions, 0 deletions
diff --git a/npmPackages/balanced-match/default.nix b/npmPackages/balanced-match/default.nix
new file mode 100644
index 0000000..309a461
--- /dev/null
+++ b/npmPackages/balanced-match/default.nix
@@ -0,0 +1,27 @@
+{ fetchurl, buildNpmPackage, matcha, tape }:
+
+buildNpmPackage {
+ pname = "balanced-match";
+ version = "1.0.0";
+ src = fetchurl {
+ url = "https://github.com/juliangruber/balanced-match/archive/v1.0.0.tar.gz";
+ sha256 = "0sqzdfnjqyw0kbwf459jwn7yds5gyf4b3jnr7779f79pqkngk86j";
+ };
+
+ meta = {
+ description = "Match balanced character pairs, like \"{\" and \"}\"";
+ homepage = "https://github.com/juliangruber/balanced-match";
+ license = "MIT";
+ };
+
+ npmInputs = [
+ matcha tape
+ ];
+
+ jailbreak = true;
+
+ files = [
+ "index.js"
+ ];
+}
+
diff --git a/npmPackages/bootstrap.nix b/npmPackages/bootstrap.nix
index a4625e9..6db650d 100644
--- a/npmPackages/bootstrap.nix
+++ b/npmPackages/bootstrap.nix
@@ -29,6 +29,7 @@ self: super:
_dummy_chalk = _mkDummy "chalk" "2.4.2";
_dummy_covert = _mkDummy "covert" "1.1.1";
_dummy_execa = _mkDummy "execa" "2.0.5";
+ _dummy_matcha = _mkDummy "matcha" "0.7.0";
_dummy_mocha = _mkDummy "mocha" "6.2.1";
_dummy_mock-fs = _mkDummy "mock-fs" "4.10.1";
_dummy_svg-term-cli = _mkDummy "svg-term-cli" "2.1.1";
@@ -54,6 +55,11 @@ in rec {
file-uri-to-path = _file-uri-to-path;
});
+ _balanced-match = dontCheck (callPackage ./balanced-match {
+ matcha = _dummy_matcha;
+ tape = _dummy_tape;
+ });
+
_callsites = dontCheck (callPackage ./callsites {
ava = _dummy_ava;
xo = _dummy_xo;
diff --git a/npmPackages/index.nix b/npmPackages/index.nix
index 6fe5ec9..00ed29d 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 {};
+ balanced-match = callPackage ./balanced-match {};
bindings = callPackage ./bindings {};
callsites = callPackage ./callsites {};
chartjs-color-string = callPackage ./chartjs-color-string {};