diff options
-rw-r--r-- | npmPackages/bootstrap.nix | 6 | ||||
-rw-r--r-- | npmPackages/has-flag/default.nix | 23 | ||||
-rw-r--r-- | npmPackages/index.nix | 1 |
3 files changed, 30 insertions, 0 deletions
diff --git a/npmPackages/bootstrap.nix b/npmPackages/bootstrap.nix index ff8afca..275ea93 100644 --- a/npmPackages/bootstrap.nix +++ b/npmPackages/bootstrap.nix @@ -63,6 +63,12 @@ in rec { tap = _dummy_tap; }); + _has-flag = dontCheck (callPackage ./has-flag { + ava = _dummy_ava; + xo = _dummy_xo; + tsd = _dummy_tsd; + }); + _minimist = dontCheck (callPackage ./minimist { covert = _dummy_covert; tap = _dummy_tap; diff --git a/npmPackages/has-flag/default.nix b/npmPackages/has-flag/default.nix new file mode 100644 index 0000000..29c17fc --- /dev/null +++ b/npmPackages/has-flag/default.nix @@ -0,0 +1,23 @@ +{ fetchurl, buildNpmPackage, ava, tsd, xo }: + +buildNpmPackage { + pname = "has-flag"; + version = "4.0.0"; + src = fetchurl { + url = "https://github.com/sindresorhus/has-flag/archive/v4.0.0.tar.gz"; + sha256 = "0cc7wzqfmg9msk825zv95bzwp861psfz8gd9qiiy7sc7rjzvpnpz"; + }; + + meta = { + description = "Check if argv has a specific flag"; + homepage = ""; + license = "MIT"; + }; + + npmInputs = [ + ava tsd xo + ]; + + jailbreak = true; +} + diff --git a/npmPackages/index.nix b/npmPackages/index.nix index c9db6c8..b971c74 100644 --- a/npmPackages/index.nix +++ b/npmPackages/index.nix @@ -10,6 +10,7 @@ in { color-name = callPackage ./color-name {}; escape-string-regexp = callPackage ./escape-string-regexp {}; fibers = callPackage ./fibers {}; + has-flag = callPackage ./has-flag {}; minimist = callPackage ./minimist {}; mkdirp = callPackage ./mkdirp {}; npm4nix = callPackage ./npm4nix {}; |