weechat: prevent impure use of system Python (#64262)

This commit is contained in:
Benjamin Esham 2019-08-08 11:34:44 -04:00 committed by Dmitry Kalinkin
parent cacc355f61
commit aaf6f09717

View File

@ -15,8 +15,10 @@ let
availablePlugins = let
simplePlugin = name: {pluginFile = "${weechat.${name}}/lib/weechat/plugins/${name}.so";};
in rec {
python = {
pluginFile = "${weechat.python}/lib/weechat/plugins/python.so";
python = (simplePlugin "python") // {
extraEnv = ''
export PATH="${pythonPackages.python}/bin:$PATH"
'';
withPackages = pkgsFun: (python // {
extraEnv = ''
export PYTHONHOME="${pythonPackages.python.withPackages pkgsFun}"