From 706b4722ef70748af81a06bcbc86d82018e0eeb3 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sat, 5 Oct 2019 14:32:34 +0200 Subject: Add ansi-styles --- npmPackages/ansi-styles/default.nix | 23 +++++++++++++++++++++++ npmPackages/bootstrap.nix | 9 +++++++++ npmPackages/index.nix | 1 + 3 files changed, 33 insertions(+) create mode 100644 npmPackages/ansi-styles/default.nix (limited to 'npmPackages') 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 {}; -- cgit v1.2.3