aboutsummaryrefslogtreecommitdiff
path: root/npmPackages
diff options
context:
space:
mode:
Diffstat (limited to 'npmPackages')
-rw-r--r--npmPackages/bootstrap.nix7
-rw-r--r--npmPackages/escape-string-regexp/default.nix23
-rw-r--r--npmPackages/index.nix1
3 files changed, 31 insertions, 0 deletions
diff --git a/npmPackages/bootstrap.nix b/npmPackages/bootstrap.nix
index ea9ad5a..ff8afca 100644
--- a/npmPackages/bootstrap.nix
+++ b/npmPackages/bootstrap.nix
@@ -32,6 +32,7 @@ self: super:
_dummy_svg-term-cli = _mkDummy "svg-term-cli" "2.1.1";
_dummy_tap = _mkDummy "tap" "14.6.5";
_dummy_tape = _mkDummy "tape" "4.11.0";
+ _dummy_tsd = _mkDummy "tsd" "0.9.0";
_dummy_xo = _mkDummy "xo" "0.25.3";
in rec {
@@ -52,6 +53,12 @@ in rec {
xo = _dummy_xo;
});
+ _escape-string-regexp = dontCheck (callPackage ./escape-string-regexp {
+ ava = _dummy_ava;
+ xo = _dummy_xo;
+ tsd = _dummy_tsd;
+ });
+
_fs-realpath = dontCheck(callPackage ./fs.realpath {
tap = _dummy_tap;
});
diff --git a/npmPackages/escape-string-regexp/default.nix b/npmPackages/escape-string-regexp/default.nix
new file mode 100644
index 0000000..5bf898f
--- /dev/null
+++ b/npmPackages/escape-string-regexp/default.nix
@@ -0,0 +1,23 @@
+{ fetchurl, buildNpmPackage, ava, tsd, xo }:
+
+buildNpmPackage {
+ pname = "escape-string-regexp";
+ version = "2.0.0";
+ src = fetchurl {
+ url = "https://github.com/sindresorhus/escape-string-regexp/archive/v2.0.0.tar.gz";
+ sha256 = "0vvh2byyfh0k2wh6zgnqkr2vnyhxfmnirwn5dfvcga5j3kn9zlrl";
+ };
+
+ meta = {
+ description = "Escape RegExp special characters";
+ homepage = "";
+ license = "MIT";
+ };
+
+ npmInputs = [
+ ava tsd xo
+ ];
+
+ jailbreak = true;
+}
+
diff --git a/npmPackages/index.nix b/npmPackages/index.nix
index fa87248..c9db6c8 100644
--- a/npmPackages/index.nix
+++ b/npmPackages/index.nix
@@ -8,6 +8,7 @@ in {
chartjs-color-string = callPackage ./chartjs-color-string {};
color-convert = callPackage ./color-convert {};
color-name = callPackage ./color-name {};
+ escape-string-regexp = callPackage ./escape-string-regexp {};
fibers = callPackage ./fibers {};
minimist = callPackage ./minimist {};
mkdirp = callPackage ./mkdirp {};