From 76ed438b3db2ce88262d12907a53d8db60081067 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sat, 5 Oct 2019 14:48:30 +0200 Subject: Add resolve-from --- npmPackages/bootstrap.nix | 6 ++++++ npmPackages/index.nix | 1 + npmPackages/resolve-from/default.nix | 23 +++++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 npmPackages/resolve-from/default.nix 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; +} + -- cgit v1.2.3