diff options
author | Doron Behar <doron.behar@gmail.com> | 2020-04-07 14:45:55 +0300 |
---|---|---|
committer | Doron Behar <doron.behar@gmail.com> | 2020-04-07 15:33:49 +0300 |
commit | 75fa5ad17cb30cb105282a1a8cfe8fb805d42d8e (patch) | |
tree | 188f8e25a90cf7dae1591371fb4c539a6647c813 /pkgs/development/web/nodejs/nodejs.nix | |
parent | f601ab37c2fb7e5f65989a92df383bcd6942567a (diff) |
nodejs: pin python versions and use python3 when possible
Diffstat (limited to 'pkgs/development/web/nodejs/nodejs.nix')
-rw-r--r-- | pkgs/development/web/nodejs/nodejs.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/web/nodejs/nodejs.nix b/pkgs/development/web/nodejs/nodejs.nix index dce8479d219e2..ce872fbcb5ee8 100644 --- a/pkgs/development/web/nodejs/nodejs.nix +++ b/pkgs/development/web/nodejs/nodejs.nix @@ -1,4 +1,4 @@ -{ 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 @@ -55,7 +55,7 @@ in 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 @@ -145,5 +145,5 @@ in 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 } |