fix mautrix-signal

This commit is contained in:
Charlotte 🦝 Delenk 2022-08-09 08:54:33 +01:00
parent 6c3d119959
commit 3920fadc24
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -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"
'';
};
}