aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-10-12 21:34:23 +0200
committerIgor Pashev <pashev.igor@gmail.com>2019-10-12 21:34:23 +0200
commita235f86fa876af4c2435f54932f1d70c3547a16c (patch)
tree1047997b528f6d9b7cdc9aca384fc0d73d0ba049
parent2d7643789f7fc2abcb3bc9c12e5e0ad91ed90fdb (diff)
downloadnpm.nix-a235f86fa876af4c2435f54932f1d70c3547a16c.tar.gz
Add fs.realpath
-rw-r--r--npmPackages/fs.realpath/default.nix21
-rw-r--r--npmPackages/index.nix1
2 files changed, 22 insertions, 0 deletions
diff --git a/npmPackages/fs.realpath/default.nix b/npmPackages/fs.realpath/default.nix
new file mode 100644
index 0000000..c18b12f
--- /dev/null
+++ b/npmPackages/fs.realpath/default.nix
@@ -0,0 +1,21 @@
+{ fetchurl, buildNpmPackage, tap }:
+
+buildNpmPackage {
+ pname = "fs.realpath";
+ version = "1.0.0";
+ src = fetchurl {
+ url = "https://github.com/isaacs/fs.realpath/archive/v1.0.0.tar.gz";
+ sha256 = "16ybsq9mxm1cwwpx2j3k2pffznsqil13ifkwf6q8q2dpavmsy5k2";
+ };
+
+ meta = {
+ description = "Use node's fs.realpath, but fall back to the JS implementation if the native one fails";
+ homepage = "";
+ license = "ISC";
+ };
+
+ npmInputs = [
+ tap
+ ];
+}
+
diff --git a/npmPackages/index.nix b/npmPackages/index.nix
index b56647b..fbb6b8f 100644
--- a/npmPackages/index.nix
+++ b/npmPackages/index.nix
@@ -16,6 +16,7 @@ in {
escape-string-regexp = callPackage ./escape-string-regexp {};
fibers = callPackage ./fibers {};
file-uri-to-path = callPackage ./file-uri-to-path {};
+ fs-realpath = callPackage ./fs.realpath {};
has-flag = callPackage ./has-flag {};
inflight = callPackage ./inflight {};
inherits = callPackage ./inherits {};