aboutsummaryrefslogtreecommitdiff
path: root/npmPackages
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-10-05 14:43:58 +0200
committerIgor Pashev <pashev.igor@gmail.com>2019-10-05 14:43:58 +0200
commit8477ef075b02a9e7fff5cbccf8843f520f5f1bb1 (patch)
treeb9dd4daa7d6392f94a8296cfe675f90c322c0cef /npmPackages
parent953ba669208dd979e4286a5d2332905ea5cff346 (diff)
downloadnpm.nix-8477ef075b02a9e7fff5cbccf8843f520f5f1bb1.tar.gz
Add has-flag
Diffstat (limited to 'npmPackages')
-rw-r--r--npmPackages/bootstrap.nix6
-rw-r--r--npmPackages/has-flag/default.nix23
-rw-r--r--npmPackages/index.nix1
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 {};