diff --git a/matrix/mautrix-signal.nix b/matrix/mautrix-signal.nix index f9f85a4..91c93a4 100644 --- a/matrix/mautrix-signal.nix +++ b/matrix/mautrix-signal.nix @@ -28,5 +28,17 @@ in { yarl ]; doCheck = false; + postInstall = '' + mkdir -p $out/bin + # Make a little wrapper for running mautrix-signal with its dependencies + echo "$mautrixSignalScript" > $out/bin/mautrix-signal + echo "#!/bin/sh + exec python -m mautrix_signal \"\$@\" + " > $out/bin/mautrix-signal + chmod +x $out/bin/mautrix-signal + wrapProgram $out/bin/mautrix-signal \ + --set PATH ${python3}/bin \ + --set PYTHONPATH "$PYTHONPATH" + ''; }; }