From 8e828bb65721319a5d7f936e7d4e67e938f0520e Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sat, 12 Oct 2019 19:52:14 +0200 Subject: Add brace-expansion --- npmPackages/bootstrap.nix | 7 +++++++ npmPackages/brace-expansion/default.nix | 27 +++++++++++++++++++++++++++ npmPackages/index.nix | 1 + 3 files changed, 35 insertions(+) create mode 100644 npmPackages/brace-expansion/default.nix 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 {}; -- cgit v1.2.3