weechat: build with python3 by default
WeeChat also supports Python3 for scripts which should be preferred as CPython2 is about to get EOLed soon: https://weechat.org/scripts/python3/
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{ lib, runCommand, writeScriptBin, buildEnv
|
||||
, pythonPackages, perlPackages, runtimeShell
|
||||
, python3Packages, perlPackages, runtimeShell
|
||||
}:
|
||||
|
||||
weechat:
|
||||
@@ -17,11 +17,11 @@ let
|
||||
in rec {
|
||||
python = (simplePlugin "python") // {
|
||||
extraEnv = ''
|
||||
export PATH="${pythonPackages.python}/bin:$PATH"
|
||||
export PATH="${python3Packages.python}/bin:$PATH"
|
||||
'';
|
||||
withPackages = pkgsFun: (python // {
|
||||
extraEnv = ''
|
||||
export PYTHONHOME="${pythonPackages.python.withPackages pkgsFun}"
|
||||
export PYTHONHOME="${python3Packages.python.withPackages pkgsFun}"
|
||||
'';
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user