newsbot-js: use nodejs 12
This commit is contained in:
parent
0857d7bcc8
commit
41a92b7715
@ -1,11 +1,11 @@
|
|||||||
{ stdenv, makeWrapper, lib, buildEnv, fetchgit, nodejs-8_x, pkgs, icu }:
|
{ stdenv, makeWrapper, lib, buildEnv, fetchgit, nodejs-12_x, pkgs, icu }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
nodeEnv = import <nixpkgs/pkgs/development/node-packages/node-env.nix> {
|
nodeEnv = import <nixpkgs/pkgs/development/node-packages/node-env.nix> {
|
||||||
inherit (pkgs) stdenv python2 utillinux runCommand writeTextFile;
|
inherit (pkgs) stdenv python2 utillinux runCommand writeTextFile;
|
||||||
nodejs = nodejs-8_x;
|
nodejs = nodejs-12_x;
|
||||||
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null;
|
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ in stdenv.mkDerivation {
|
|||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
nodejs-8_x
|
nodejs-12_x
|
||||||
makeWrapper
|
makeWrapper
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ in stdenv.mkDerivation {
|
|||||||
|
|
||||||
cp newsbot.js $out/
|
cp newsbot.js $out/
|
||||||
cat > $out/newsbot << EOF
|
cat > $out/newsbot << EOF
|
||||||
${nodejs-8_x}/bin/node $out/newsbot.js
|
${nodejs-12_x}/bin/node $out/newsbot.js
|
||||||
EOF
|
EOF
|
||||||
chmod +x $out/newsbot
|
chmod +x $out/newsbot
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user