aboutsummaryrefslogtreecommitdiff
path: root/npmPackages
diff options
context:
space:
mode:
Diffstat (limited to 'npmPackages')
-rw-r--r--npmPackages/bootstrap.nix5
-rw-r--r--npmPackages/file-uri-to-path/default.nix28
-rw-r--r--npmPackages/index.nix1
3 files changed, 34 insertions, 0 deletions
diff --git a/npmPackages/bootstrap.nix b/npmPackages/bootstrap.nix
index f1435bb..9b4b793 100644
--- a/npmPackages/bootstrap.nix
+++ b/npmPackages/bootstrap.nix
@@ -29,6 +29,7 @@ self: super:
_dummy_chalk = _mkDummy "chalk" "2.4.2";
_dummy_covert = _mkDummy "covert" "1.1.1";
_dummy_execa = _mkDummy "execa" "2.0.5";
+ _dummy_mocha = _mkDummy "mocha" "6.2.1";
_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";
@@ -66,6 +67,10 @@ in rec {
tsd = _dummy_tsd;
});
+ _file-uri-to-path = dontCheck(callPackage ./file-uri-to-path {
+ mocha = _dummy_mocha;
+ });
+
_fs-realpath = dontCheck(callPackage ./fs.realpath {
tap = _dummy_tap;
});
diff --git a/npmPackages/file-uri-to-path/default.nix b/npmPackages/file-uri-to-path/default.nix
new file mode 100644
index 0000000..fdd5e41
--- /dev/null
+++ b/npmPackages/file-uri-to-path/default.nix
@@ -0,0 +1,28 @@
+{ fetchurl, buildNpmPackage, mocha }:
+
+buildNpmPackage {
+ pname = "file-uri-to-path";
+ version = "1.0.0";
+ src = fetchurl {
+ url = "https://github.com/TooTallNate/file-uri-to-path/archive/1.0.0.tar.gz";
+ sha256 = "0jqdcichbcb73d7bwjng9grycwhqiaz9777nm4bxska4qbrvxx2f";
+ };
+
+ meta = {
+ description = "Convert a file: URI to a file path";
+ homepage = "https://github.com/TooTallNate/file-uri-to-path";
+ license = "MIT";
+ };
+
+ npmInputs = [
+ mocha
+ ];
+
+ files = [
+ "index.d.ts"
+ "index.ts"
+ ];
+
+ jailbreak = true;
+}
+
diff --git a/npmPackages/index.nix b/npmPackages/index.nix
index cdcea2e..269acc7 100644
--- a/npmPackages/index.nix
+++ b/npmPackages/index.nix
@@ -11,6 +11,7 @@ in {
color-name = callPackage ./color-name {};
escape-string-regexp = callPackage ./escape-string-regexp {};
fibers = callPackage ./fibers {};
+ file-uri-to-path = callPackage ./file-uri-to-path {};
has-flag = callPackage ./has-flag {};
minimist = callPackage ./minimist {};
mkdirp = callPackage ./mkdirp {};