a8b1b57b85
GitOrigin-RevId: fc4148a47fa927319186061aa42633c8aa5777f1
55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{ lib, python3, fetchFromGitHub }:
|
|
|
|
python3.pkgs.buildPythonPackage rec {
|
|
pname = "mautrix-signal";
|
|
version = "0.2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mautrix";
|
|
repo = "signal";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-gJngGgShW63g5zSyZraod0YTt/pFtVLySDXNXXC5Xxs=";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
CommonMark
|
|
aiohttp
|
|
asyncpg
|
|
attrs
|
|
mautrix
|
|
phonenumbers
|
|
pillow
|
|
prometheus-client
|
|
pycryptodome
|
|
python-olm
|
|
python_magic
|
|
qrcode
|
|
ruamel-yaml
|
|
unpaddedbase64
|
|
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"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/mautrix/signal";
|
|
description = "A Matrix-Signal puppeting bridge";
|
|
license = licenses.agpl3Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ expipiplus1 ];
|
|
};
|
|
}
|