mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-23 14:56:43 +03:00
spark-wallet: use nodejs 14 instead of 12 since latter is EOL
This commit is contained in:
parent
ebaa9a3f2e
commit
636d508b50
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{pkgs ? import <nixpkgs> {
|
{pkgs ? import <nixpkgs> {
|
||||||
inherit system;
|
inherit system;
|
||||||
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-12_x"}:
|
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-14_x"}:
|
||||||
|
|
||||||
let
|
let
|
||||||
nodeEnv = import "${toString pkgs.path}/pkgs/development/node-packages/node-env.nix" {
|
nodeEnv = import "${toString pkgs.path}/pkgs/development/node-packages/node-env.nix" {
|
||||||
|
@ -28,8 +28,11 @@ tar xvf $TMPDIR/$file -C $src --strip-components 1 >/dev/null
|
|||||||
jq '.dependencies["qrcode-terminal"] = .optionalDependencies["qrcode-terminal"]' $src/package.json | sponge $src/package.json
|
jq '.dependencies["qrcode-terminal"] = .optionalDependencies["qrcode-terminal"]' $src/package.json | sponge $src/package.json
|
||||||
|
|
||||||
# Generate nix pkg
|
# Generate nix pkg
|
||||||
|
# TODO-EXTERNAL: remove --nodejs-14 option once
|
||||||
|
# https://github.com/svanderburg/node2nix/pull/296 has made its way into a
|
||||||
|
# node2nix release.
|
||||||
node2nix \
|
node2nix \
|
||||||
--nodejs-12 \
|
--nodejs-14 \
|
||||||
--input $src/package.json \
|
--input $src/package.json \
|
||||||
--lock $src/npm-shrinkwrap.json \
|
--lock $src/npm-shrinkwrap.json \
|
||||||
--composition composition.nix \
|
--composition composition.nix \
|
||||||
|
Loading…
Reference in New Issue
Block a user