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.
This commit is contained in:
Clemens Fruhwirth 2019-03-26 13:52:34 +01:00
parent b3e0315d8e
commit 2250644f82
3 changed files with 3 additions and 3 deletions

View File

@ -1,3 +1,3 @@
[
{ "lightning-charge": "https://registry.npmjs.org/lightning-charge/-/lightning-charge-0.4.7.tgz" }
{ "lightning-charge": "^0.4.7" }
]

View File

@ -1,3 +1,3 @@
[
{ "nanopos": "https://registry.npmjs.org/nanopos/-/nanopos-0.1.5.tgz" }
{ "nanopos": "^0.1.5" }
]

View File

@ -1,3 +1,3 @@
[
{ "spark-wallet": "https://registry.npmjs.org/spark-wallet/-/spark-wallet-0.2.5.tgz" }
{ "spark-wallet": "^0.2.5" }
]