weechat: prevent impure use of system Python (#64262)
This commit is contained in:
parent
cacc355f61
commit
aaf6f09717
@ -15,8 +15,10 @@ let
|
|||||||
availablePlugins = let
|
availablePlugins = let
|
||||||
simplePlugin = name: {pluginFile = "${weechat.${name}}/lib/weechat/plugins/${name}.so";};
|
simplePlugin = name: {pluginFile = "${weechat.${name}}/lib/weechat/plugins/${name}.so";};
|
||||||
in rec {
|
in rec {
|
||||||
python = {
|
python = (simplePlugin "python") // {
|
||||||
pluginFile = "${weechat.python}/lib/weechat/plugins/python.so";
|
extraEnv = ''
|
||||||
|
export PATH="${pythonPackages.python}/bin:$PATH"
|
||||||
|
'';
|
||||||
withPackages = pkgsFun: (python // {
|
withPackages = pkgsFun: (python // {
|
||||||
extraEnv = ''
|
extraEnv = ''
|
||||||
export PYTHONHOME="${pythonPackages.python.withPackages pkgsFun}"
|
export PYTHONHOME="${pythonPackages.python.withPackages pkgsFun}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user