From 3920fadc24af61decb3a07511c8eb3e206b7db8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Tue, 9 Aug 2022 08:54:33 +0100 Subject: [PATCH] fix mautrix-signal --- matrix/mautrix-signal.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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" + ''; }; }