mautrix-signal: Use --prefix instead of --set in wrapper.

Otherwise, options like `systemd.services.<name>.path` have no effect.

An example for this being necessary is to add `ffmpeg` to the path of
a service running `mautrix-signal` in order to decode audio messages.

In general, package wrappers should not make environment variables like
PATH or PYTHONPATH non-overridable.
This commit is contained in:
Niklas Hambüchen 2022-09-07 13:43:43 +02:00
parent e696cfa9ea
commit 162d4bf69f

View File

@ -47,8 +47,8 @@ python3.pkgs.buildPythonPackage rec {
" > $out/bin/mautrix-signal
chmod +x $out/bin/mautrix-signal
wrapProgram $out/bin/mautrix-signal \
--set PATH ${python3}/bin \
--set PYTHONPATH "$PYTHONPATH"
--prefix PATH : "${python3}/bin" \
--prefix PYTHONPATH : "$PYTHONPATH"
'';
meta = with lib; {