From 2250644f829d405c8cb4315959b86b8d0c6d08fd Mon Sep 17 00:00:00 2001 From: Clemens Fruhwirth Date: Tue, 26 Mar 2019 13:52:34 +0100 Subject: [PATCH] node2nix packages: Replace tgz reference with symbolic one. This is almost equivalent except that with symbolic reference node2nix consults the NPM registry for package.json information instead of the package.json in the tgz file. The registry canonicalizes the "dependencies" attribute in that it adds all "optionalDependencies", which the npm binary would do for local package.json files, but node2nix does not. For spark-wallet optionalDependencies are not listed in the tgz distributed package.json, hence node2nix misses them. This leads to a missing qrcode-terminal package and spark-wallet dying when called with -Q. --- pkgs/lightning-charge/pkg.json | 2 +- pkgs/nanopos/pkg.json | 2 +- pkgs/spark-wallet/pkg.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/lightning-charge/pkg.json b/pkgs/lightning-charge/pkg.json index 2b91134..3fea555 100644 --- a/pkgs/lightning-charge/pkg.json +++ b/pkgs/lightning-charge/pkg.json @@ -1,3 +1,3 @@ [ - { "lightning-charge": "https://registry.npmjs.org/lightning-charge/-/lightning-charge-0.4.7.tgz" } + { "lightning-charge": "^0.4.7" } ] diff --git a/pkgs/nanopos/pkg.json b/pkgs/nanopos/pkg.json index 4cc3355..7a1256c 100644 --- a/pkgs/nanopos/pkg.json +++ b/pkgs/nanopos/pkg.json @@ -1,3 +1,3 @@ [ - { "nanopos": "https://registry.npmjs.org/nanopos/-/nanopos-0.1.5.tgz" } + { "nanopos": "^0.1.5" } ] diff --git a/pkgs/spark-wallet/pkg.json b/pkgs/spark-wallet/pkg.json index 6339492..1700066 100644 --- a/pkgs/spark-wallet/pkg.json +++ b/pkgs/spark-wallet/pkg.json @@ -1,3 +1,3 @@ [ - { "spark-wallet": "https://registry.npmjs.org/spark-wallet/-/spark-wallet-0.2.5.tgz" } + { "spark-wallet": "^0.2.5" } ]