diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2019-10-05 14:40:17 +0200 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2019-10-05 14:40:17 +0200 |
commit | 953ba669208dd979e4286a5d2332905ea5cff346 (patch) | |
tree | 413ac4595c8b4b8e00f483e266c3c3f943d74b77 /npmPackages | |
parent | 67fd24a80ecf2d809e95064772713ace9b0bae6b (diff) | |
download | npm.nix-953ba669208dd979e4286a5d2332905ea5cff346.tar.gz |
Add escape-string-regexp
Diffstat (limited to 'npmPackages')
-rw-r--r-- | npmPackages/bootstrap.nix | 7 | ||||
-rw-r--r-- | npmPackages/escape-string-regexp/default.nix | 23 | ||||
-rw-r--r-- | npmPackages/index.nix | 1 |
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 {}; |