aboutsummaryrefslogtreecommitdiff
path: root/npmPackages
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-10-05 14:32:34 +0200
committerIgor Pashev <pashev.igor@gmail.com>2019-10-05 14:32:34 +0200
commit706b4722ef70748af81a06bcbc86d82018e0eeb3 (patch)
tree4dfa3db0b474630253b5a49cc6063db22289204e /npmPackages
parenta62999def2194f4e3950b43aafb8ccc9b0a03b3a (diff)
downloadnpm.nix-706b4722ef70748af81a06bcbc86d82018e0eeb3.tar.gz
Add ansi-styles
Diffstat (limited to 'npmPackages')
-rw-r--r--npmPackages/ansi-styles/default.nix23
-rw-r--r--npmPackages/bootstrap.nix9
-rw-r--r--npmPackages/index.nix1
3 files changed, 33 insertions, 0 deletions
diff --git a/npmPackages/ansi-styles/default.nix b/npmPackages/ansi-styles/default.nix
new file mode 100644
index 0000000..5f26bd5
--- /dev/null
+++ b/npmPackages/ansi-styles/default.nix
@@ -0,0 +1,23 @@
+{ fetchurl, buildNpmPackage, ava, color-convert, svg-term-cli, xo }:
+
+buildNpmPackage {
+ pname = "ansi-styles";
+ version = "4.1.0";
+ src = fetchurl {
+ url = "https://github.com/chalk/ansi-styles/archive/v4.1.0.tar.gz";
+ sha256 = "1p3b4agrb73b46lw17c1nrx45pkfpi7jfbwp3xdcz1azcrjhri2c";
+ };
+
+ meta = {
+ description = "ANSI escape codes for styling strings in the terminal";
+ homepage = "";
+ license = "MIT";
+ };
+
+ npmInputs = [
+ ava color-convert svg-term-cli xo
+ ];
+
+ jailbreak = true;
+}
+
diff --git a/npmPackages/bootstrap.nix b/npmPackages/bootstrap.nix
index 0e15374..7b30dd8 100644
--- a/npmPackages/bootstrap.nix
+++ b/npmPackages/bootstrap.nix
@@ -25,9 +25,11 @@ in rec {
# XXX dummy package are to help bootstrapping.
# XXX Usually these are devDependencies needed to run tests.
+ _dummy_ava = _mkDummy "ava" "2.4.0";
_dummy_chalk = _mkDummy "chalk" "2.4.2";
_dummy_covert = _mkDummy "covert" "1.1.1";
_dummy_mock-fs = _mkDummy "mock-fs" "4.10.1";
+ _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_xo = _mkDummy "xo" "0.25.3";
@@ -36,6 +38,13 @@ in rec {
# XXX packages with underscore are "incomplete".
# XXX Should only be used to resolve circular dependencies.
+ _ansi-styles = dontCheck (callPackage ./ansi-styles {
+ ava = _dummy_ava;
+ color-convert = _color-convert;
+ svg-term-cli = _dummy_svg-term-cli;
+ xo = _dummy_xo;
+ });
+
_color-convert = dontCheck (callPackage ./color-convert {
chalk = _dummy_chalk;
xo = _dummy_xo;
diff --git a/npmPackages/index.nix b/npmPackages/index.nix
index 24720f3..fa87248 100644
--- a/npmPackages/index.nix
+++ b/npmPackages/index.nix
@@ -3,6 +3,7 @@ self: super:
let
inherit (super) callPackage;
in {
+ ansi-styles = callPackage ./ansi-styles {};
async-foreach = callPackage ./async-foreach {};
chartjs-color-string = callPackage ./chartjs-color-string {};
color-convert = callPackage ./color-convert {};