diff options
author | obadz <obadz-git@obadz.com> | 2016-08-19 13:48:07 +0100 |
---|---|---|
committer | obadz <obadz-git@obadz.com> | 2016-08-19 13:48:35 +0100 |
commit | 80dbdba6dda9b7adc49027de09f6db0ab2e7503c (patch) | |
tree | acbdf75848702d59ea543d0215e5424948ba6ed8 /pkgs/applications/networking/irc | |
parent | ec918dac165d29fabadf59b8eaba924d27421258 (diff) |
weechat: add python & perl to PATH so that extensions can run
Diffstat (limited to 'pkgs/applications/networking/irc')
-rw-r--r-- | pkgs/applications/networking/irc/weechat/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/applications/networking/irc/weechat/default.nix b/pkgs/applications/networking/irc/weechat/default.nix index 79bf92ba3c38e..1ad0cfa62759e 100644 --- a/pkgs/applications/networking/irc/weechat/default.nix +++ b/pkgs/applications/networking/irc/weechat/default.nix @@ -52,9 +52,11 @@ stdenv.mkDerivation rec { NIX_CFLAGS_COMPILE = "-I${python}/include/${python.libPrefix} -DCA_FILE=/etc/ssl/certs/ca-certificates.crt"; - postInstall = '' + postInstall = with stdenv.lib; '' NIX_PYTHONPATH="$out/lib/${python.libPrefix}/site-packages" wrapProgram "$out/bin/weechat" \ + ${optionalString perlSupport "--prefix PATH : ${perl}/bin"} \ + --prefix PATH : ${pythonPackages.python}/bin \ --prefix PYTHONPATH : "$PYTHONPATH" \ --prefix PYTHONPATH : "$NIX_PYTHONPATH" ''; |