diff options
Diffstat (limited to 'npmPackages')
-rw-r--r-- | npmPackages/bootstrap.nix | 6 | ||||
-rw-r--r-- | npmPackages/index.nix | 1 | ||||
-rw-r--r-- | npmPackages/resolve-from/default.nix | 23 |
3 files changed, 30 insertions, 0 deletions
diff --git a/npmPackages/bootstrap.nix b/npmPackages/bootstrap.nix index 275ea93..8cce201 100644 --- a/npmPackages/bootstrap.nix +++ b/npmPackages/bootstrap.nix @@ -81,6 +81,12 @@ in rec { tap = _dummy_tap; }); + _resolve-from = dontCheck (callPackage ./resolve-from { + ava = _dummy_ava; + xo = _dummy_xo; + tsd = _dummy_tsd; + }); + _semver = dontCheck (callPackage ./semver { tap = _dummy_tap; }); diff --git a/npmPackages/index.nix b/npmPackages/index.nix index b971c74..c9d19bd 100644 --- a/npmPackages/index.nix +++ b/npmPackages/index.nix @@ -15,6 +15,7 @@ in { mkdirp = callPackage ./mkdirp {}; npm4nix = callPackage ./npm4nix {}; posix-getopt = callPackage ./posix-getopt {}; + resolve-from = callPackage ./resolve-from {}; semver = callPackage ./semver {}; wrappy = callPackage ./wrappy {}; } diff --git a/npmPackages/resolve-from/default.nix b/npmPackages/resolve-from/default.nix new file mode 100644 index 0000000..2c7cd47 --- /dev/null +++ b/npmPackages/resolve-from/default.nix @@ -0,0 +1,23 @@ +{ fetchurl, buildNpmPackage, ava, tsd, xo }: + +buildNpmPackage { + pname = "resolve-from"; + version = "5.0.0"; + src = fetchurl { + url = "https://github.com/sindresorhus/resolve-from/archive/v5.0.0.tar.gz"; + sha256 = "1ynbq4077lsbyxbc96nxalcj885lpcp0vahi65ziir8lzkya6qvq"; + }; + + meta = { + description = "Resolve the path of a module like `require.resolve()` but from a given path"; + homepage = ""; + license = "MIT"; + }; + + npmInputs = [ + ava tsd xo + ]; + + jailbreak = true; +} + |