weechat: prevent impure use of system Python (#64262)
commitaaf6f0971794d3ea0b7f9ec8717c488793a679d9
authorBenjamin Esham <benjamin@esham.io>
dateThu 8 Aug 2019, 11:34 (7 years ago)
parentcacc355
pkgs/applications/networking/irc/weechat/wrapper.nix+4−2
@@ -15,8 +15,10 @@ let
1515 availablePlugins = let
1616 simplePlugin = name: {pluginFile = "${weechat.${name}}/lib/weechat/plugins/${name}.so";};
1717 in rec {
18− python = {
19− pluginFile = "${weechat.python}/lib/weechat/plugins/python.so";
18+ python = (simplePlugin "python") // {
19+ extraEnv = ''
20+ export PATH="${pythonPackages.python}/bin:$PATH"
21+ '';
2022 withPackages = pkgsFun: (python // {
2123 extraEnv = ''
2224 export PYTHONHOME="${pythonPackages.python.withPackages pkgsFun}"