mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 04:02:10 +00:00
weechat: add python & perl to PATH so that extensions can run
This commit is contained in:
parent
ec918dac16
commit
80dbdba6dd
|
@ -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"
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue