From 10fe4883ae783cae07a8e22443118b756a7c466f Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sat, 12 Oct 2019 19:47:05 +0200 Subject: Add concat-map --- npmPackages/bootstrap.nix | 4 ++++ npmPackages/concat-map/default.nix | 27 +++++++++++++++++++++++++++ npmPackages/index.nix | 1 + 3 files changed, 32 insertions(+) create mode 100644 npmPackages/concat-map/default.nix diff --git a/npmPackages/bootstrap.nix b/npmPackages/bootstrap.nix index 6db650d..f22b098 100644 --- a/npmPackages/bootstrap.nix +++ b/npmPackages/bootstrap.nix @@ -71,6 +71,10 @@ in rec { xo = _dummy_xo; }); + _concat-map = dontCheck (callPackage ./concat-map { + tape = _dummy_tape; + }); + _escape-string-regexp = dontCheck (callPackage ./escape-string-regexp { ava = _dummy_ava; xo = _dummy_xo; diff --git a/npmPackages/concat-map/default.nix b/npmPackages/concat-map/default.nix new file mode 100644 index 0000000..2484b4a --- /dev/null +++ b/npmPackages/concat-map/default.nix @@ -0,0 +1,27 @@ +{ fetchurl, buildNpmPackage, tape }: + +buildNpmPackage { + pname = "concat-map"; + version = "0.0.1"; + src = fetchurl { + url = "https://github.com/substack/node-concat-map/archive/0.0.1.tar.gz"; + sha256 = "0vr53dsjbdr5x9ywcrgjxj08dp5z3c4hkhv9rsppmd66ibpq0rlk"; + }; + + meta = { + description = "concatenative mapdashery"; + homepage = ""; + license = "MIT"; + }; + + npmInputs = [ + tape + ]; + + jailbreak = true; + + files = [ + "index.js" + ]; +} + diff --git a/npmPackages/index.nix b/npmPackages/index.nix index 00ed29d..666a136 100644 --- a/npmPackages/index.nix +++ b/npmPackages/index.nix @@ -11,6 +11,7 @@ in { chartjs-color-string = callPackage ./chartjs-color-string {}; color-convert = callPackage ./color-convert {}; color-name = callPackage ./color-name {}; + concat-map = callPackage ./concat-map {}; escape-string-regexp = callPackage ./escape-string-regexp {}; fibers = callPackage ./fibers {}; file-uri-to-path = callPackage ./file-uri-to-path {}; -- cgit v1.2.3