nodejs: pin python versions and use python3 when possible

Changed files
+18 -9
pkgs
development
+3 -3
pkgs/development/web/nodejs/nodejs.nix
···
-
{ stdenv, fetchurl, openssl, python2, zlib, libuv, utillinux, http-parser
+
{ stdenv, fetchurl, openssl, python, zlib, libuv, utillinux, http-parser
, pkgconfig, which
# Updater dependencies
, writeScript, coreutils, gnugrep, jq, curl, common-updater-scripts, nix, runtimeShell
···
buildInputs = optionals stdenv.isDarwin [ CoreServices ApplicationServices ]
++ [ zlib libuv openssl http-parser icu ];
-
nativeBuildInputs = [ which utillinux pkgconfig python2 ]
+
nativeBuildInputs = [ which utillinux pkgconfig python ]
++ optionals stdenv.isDarwin [ xcbuild ];
configureFlags = let
···
platforms = platforms.linux ++ platforms.darwin;
};
-
passthru.python = python2; # to ensure nodeEnv uses the same version
+
passthru.python = python; # to ensure nodeEnv uses the same version
}
+5 -2
pkgs/development/web/nodejs/v10.nix
···
-
{ callPackage, openssl, enableNpm ? true }:
+
{ callPackage, openssl, icu, python2, enableNpm ? true }:
let
-
buildNodejs = callPackage ./nodejs.nix { inherit openssl; };
+
buildNodejs = callPackage ./nodejs.nix {
+
inherit openssl icu;
+
python = python2;
+
};
in
buildNodejs {
inherit enableNpm;
+5 -2
pkgs/development/web/nodejs/v12.nix
···
-
{ callPackage, openssl, icu, enableNpm ? true }:
+
{ callPackage, openssl, icu, python2, enableNpm ? true }:
let
-
buildNodejs = callPackage ./nodejs.nix { inherit openssl icu; };
+
buildNodejs = callPackage ./nodejs.nix {
+
inherit openssl icu;
+
python = python2;
+
};
in
buildNodejs {
inherit enableNpm;
+5 -2
pkgs/development/web/nodejs/v13.nix
···
-
{ callPackage, openssl, icu, enableNpm ? true }:
+
{ callPackage, openssl, icu, python3, enableNpm ? true }:
let
-
buildNodejs = callPackage ./nodejs.nix { inherit openssl icu; };
+
buildNodejs = callPackage ./nodejs.nix {
+
inherit openssl icu;
+
python = python3;
+
};
in
buildNodejs {
inherit enableNpm;