go-shortener: use nodejs-12
This commit is contained in:
parent
06d19698a4
commit
5e798c623d
|
@ -1,11 +1,11 @@
|
||||||
{ stdenv, makeWrapper, lib, buildEnv, fetchgit, nodejs-8_x, pkgs }:
|
{ stdenv, makeWrapper, lib, buildEnv, fetchgit, nodejs-12_x, pkgs }:
|
||||||
|
|
||||||
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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ in stdenv.mkDerivation {
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
nodejs-8_x
|
nodejs-12_x
|
||||||
makeWrapper
|
makeWrapper
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ in stdenv.mkDerivation {
|
||||||
|
|
||||||
cp index.js $out/
|
cp index.js $out/
|
||||||
cat > $out/go << EOF
|
cat > $out/go << EOF
|
||||||
${nodejs-8_x}/bin/node $out/index.js
|
${nodejs-12_x}/bin/node $out/index.js
|
||||||
EOF
|
EOF
|
||||||
chmod +x $out/go
|
chmod +x $out/go
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue