aboutsummaryrefslogtreecommitdiff
path: root/npmPackages
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-10-05 14:57:17 +0200
committerIgor Pashev <pashev.igor@gmail.com>2019-10-05 14:57:17 +0200
commit6a346c5f1a791c6aee0698446d1dac4b7c36fae1 (patch)
tree24a7e5f2f7ec04c356638649ad14e080e16b64ce /npmPackages
parent53aa51951e1b8513f776e6249a5846a9b9366722 (diff)
downloadnpm.nix-6a346c5f1a791c6aee0698446d1dac4b7c36fae1.tar.gz
Add parent-module
Diffstat (limited to 'npmPackages')
-rw-r--r--npmPackages/bootstrap.nix9
-rw-r--r--npmPackages/index.nix1
-rw-r--r--npmPackages/parent-module/default.nix23
3 files changed, 33 insertions, 0 deletions
diff --git a/npmPackages/bootstrap.nix b/npmPackages/bootstrap.nix
index a5d3feb..f1435bb 100644
--- a/npmPackages/bootstrap.nix
+++ b/npmPackages/bootstrap.nix
@@ -28,6 +28,7 @@ self: super:
_dummy_ava = _mkDummy "ava" "2.4.0";
_dummy_chalk = _mkDummy "chalk" "2.4.2";
_dummy_covert = _mkDummy "covert" "1.1.1";
+ _dummy_execa = _mkDummy "execa" "2.0.5";
_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";
@@ -87,6 +88,14 @@ in rec {
tap = _dummy_tap;
});
+ _parent-module = dontCheck (callPackage ./parent-module {
+ ava = _dummy_ava;
+ callsites = _callsites;
+ execa = _dummy_execa;
+ tsd = _dummy_tsd;
+ xo = _dummy_xo;
+ });
+
_resolve-from = dontCheck (callPackage ./resolve-from {
ava = _dummy_ava;
xo = _dummy_xo;
diff --git a/npmPackages/index.nix b/npmPackages/index.nix
index 26cf0ed..cdcea2e 100644
--- a/npmPackages/index.nix
+++ b/npmPackages/index.nix
@@ -15,6 +15,7 @@ in {
minimist = callPackage ./minimist {};
mkdirp = callPackage ./mkdirp {};
npm4nix = callPackage ./npm4nix {};
+ parent-module = callPackage ./parent-module {};
posix-getopt = callPackage ./posix-getopt {};
resolve-from = callPackage ./resolve-from {};
semver = callPackage ./semver {};
diff --git a/npmPackages/parent-module/default.nix b/npmPackages/parent-module/default.nix
new file mode 100644
index 0000000..f1f3c1c
--- /dev/null
+++ b/npmPackages/parent-module/default.nix
@@ -0,0 +1,23 @@
+{ fetchurl, buildNpmPackage, ava, callsites, execa, tsd, xo }:
+
+buildNpmPackage {
+ pname = "parent-module";
+ version = "2.0.0";
+ src = fetchurl {
+ url = "https://github.com/sindresorhus/parent-module/archive/v2.0.0.tar.gz";
+ sha256 = "17d4mr95yi1gicbfgrdijwqryrr9ss3sjarbycwx8rrl7jryf20j";
+ };
+
+ meta = {
+ description = "Get the path of the parent module";
+ homepage = "";
+ license = "MIT";
+ };
+
+ npmInputs = [
+ ava callsites execa tsd xo
+ ];
+
+ jailbreak = true;
+}
+