aboutsummaryrefslogtreecommitdiff
path: root/npmPackages
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-10-12 19:52:14 +0200
committerIgor Pashev <pashev.igor@gmail.com>2019-10-12 19:52:14 +0200
commit8e828bb65721319a5d7f936e7d4e67e938f0520e (patch)
treea0f93f43be5452a3c9e37ce7bbfcc614fbd575f1 /npmPackages
parent10fe4883ae783cae07a8e22443118b756a7c466f (diff)
downloadnpm.nix-8e828bb65721319a5d7f936e7d4e67e938f0520e.tar.gz
Add brace-expansion
Diffstat (limited to 'npmPackages')
-rw-r--r--npmPackages/bootstrap.nix7
-rw-r--r--npmPackages/brace-expansion/default.nix27
-rw-r--r--npmPackages/index.nix1
3 files changed, 35 insertions, 0 deletions
diff --git a/npmPackages/bootstrap.nix b/npmPackages/bootstrap.nix
index f22b098..d34a545 100644
--- a/npmPackages/bootstrap.nix
+++ b/npmPackages/bootstrap.nix
@@ -60,6 +60,13 @@ in rec {
tape = _dummy_tape;
});
+ _brace-expansion = dontCheck (callPackage ./brace-expansion {
+ balanced-match = _balanced-match;
+ concat-map = _concat-map;
+ matcha = _dummy_matcha;
+ tape = _dummy_tape;
+ });
+
_callsites = dontCheck (callPackage ./callsites {
ava = _dummy_ava;
xo = _dummy_xo;
diff --git a/npmPackages/brace-expansion/default.nix b/npmPackages/brace-expansion/default.nix
new file mode 100644
index 0000000..c6065ee
--- /dev/null
+++ b/npmPackages/brace-expansion/default.nix
@@ -0,0 +1,27 @@
+{ fetchurl, buildNpmPackage, balanced-match, concat-map, matcha, tape }:
+
+buildNpmPackage {
+ pname = "brace-expansion";
+ version = "1.1.11";
+ src = fetchurl {
+ url = "https://github.com/juliangruber/brace-expansion/archive/1.1.11.tar.gz";
+ sha256 = "01ndknwgnb4mga5kzm55vv2nxgd88439h4asz7irdgshsqqp2gmz";
+ };
+
+ meta = {
+ description = "Brace expansion as known from sh/bash";
+ homepage = "https://github.com/juliangruber/brace-expansion";
+ license = "MIT";
+ };
+
+ npmInputs = [
+ balanced-match concat-map matcha tape
+ ];
+
+ jailbreak = true;
+
+ files = [
+ "index.js"
+ ];
+}
+
diff --git a/npmPackages/index.nix b/npmPackages/index.nix
index 666a136..277c4b1 100644
--- a/npmPackages/index.nix
+++ b/npmPackages/index.nix
@@ -7,6 +7,7 @@ in {
async-foreach = callPackage ./async-foreach {};
balanced-match = callPackage ./balanced-match {};
bindings = callPackage ./bindings {};
+ brace-expansion = callPackage ./brace-expansion {};
callsites = callPackage ./callsites {};
chartjs-color-string = callPackage ./chartjs-color-string {};
color-convert = callPackage ./color-convert {};