This repository has been archived on 2024-10-13. You can view files and clone it, but cannot push or open issues or pull requests.
nix-packages/matrix/mautrix-signal/default.nix
Charlotte 🦝 Delenk efe7db34b2
All checks were successful
Hydra mautrix-whatsapp Hydra build #50159 of nix-packages:aarch64-linux-master-pr271:mautrix-whatsapp
Hydra plover-plugins-manager Hydra build #50160 of nix-packages:aarch64-linux-master-pr271:plover-plugins-manager
Hydra wordpress-plugins.nodeinfo Hydra build #50161 of nix-packages:aarch64-linux-master-pr271:wordpress-plugins.nodeinfo
Hydra emoji-volpeon-fox Hydra build #50162 of nix-packages:aarch64-linux-master-pr271:emoji-volpeon-fox
Hydra emoji-volpeon-gphn Hydra build #50163 of nix-packages:aarch64-linux-master-pr271:emoji-volpeon-gphn
Hydra wordpress-plugins.friends Hydra build #50164 of nix-packages:aarch64-linux-master-pr271:wordpress-plugins.friends
Hydra python-mautrix Hydra build #50165 of nix-packages:aarch64-linux-master-pr271:python-mautrix
Hydra hydra Hydra build #50166 of nix-packages:aarch64-linux-master-pr271:hydra
Hydra python-simplefuzzyset Hydra build #50167 of nix-packages:aarch64-linux-master-pr271:python-simplefuzzyset
Hydra plover-plugin-yaml-dictionary Hydra build #50168 of nix-packages:aarch64-linux-master-pr271:plover-plugin-yaml-dictionary
Hydra akkoma Hydra build #50169 of nix-packages:aarch64-linux-master-pr271:akkoma
Hydra wordpress-plugins.classic-editor Hydra build #50170 of nix-packages:aarch64-linux-master-pr271:wordpress-plugins.classic-editor
Hydra emoji-volpeon-blobfox-flip Hydra build #50171 of nix-packages:aarch64-linux-master-pr271:emoji-volpeon-blobfox-flip
Hydra wordpress-plugins.wordpress-seo Hydra build #50172 of nix-packages:aarch64-linux-master-pr271:wordpress-plugins.wordpress-seo
Hydra kubo Hydra build #50173 of nix-packages:aarch64-linux-master-pr271:kubo
Hydra wordpress-plugins.wp-super-cache Hydra build #50174 of nix-packages:aarch64-linux-master-pr271:wordpress-plugins.wp-super-cache
Hydra element-web Hydra build #50175 of nix-packages:aarch64-linux-master-pr271:element-web
Hydra mautrix-discord Hydra build #50176 of nix-packages:aarch64-linux-master-pr271:mautrix-discord
Hydra emoji-volpeon-raccoon Hydra build #50177 of nix-packages:aarch64-linux-master-pr271:emoji-volpeon-raccoon
Hydra admin-fe Hydra build #50178 of nix-packages:aarch64-linux-master-pr271:admin-fe
Hydra plover-plugin-emoji Hydra build #50179 of nix-packages:aarch64-linux-master-pr271:plover-plugin-emoji
Hydra emoji-volpeon-bunhd Hydra build #50180 of nix-packages:aarch64-linux-master-pr271:emoji-volpeon-bunhd
Hydra python-plover-stroke Hydra build #50181 of nix-packages:aarch64-linux-master-pr271:python-plover-stroke
Hydra wordpress-plugins.pubsubhubbub Hydra build #50182 of nix-packages:aarch64-linux-master-pr271:wordpress-plugins.pubsubhubbub
Hydra plover-plugin-machine-hid Hydra build #50183 of nix-packages:aarch64-linux-master-pr271:plover-plugin-machine-hid
Hydra python-instagram Hydra build #50184 of nix-packages:aarch64-linux-master-pr271:python-instagram
Hydra woodpecker-server Hydra build #50185 of nix-packages:aarch64-linux-master-pr271:woodpecker-server
Hydra wordpress-plugins.webp-express Hydra build #50186 of nix-packages:aarch64-linux-master-pr271:wordpress-plugins.webp-express
Hydra woodpecker-frontend Hydra build #50187 of nix-packages:aarch64-linux-master-pr271:woodpecker-frontend
Hydra wordpress-plugins.webmention Hydra build #50188 of nix-packages:aarch64-linux-master-pr271:wordpress-plugins.webmention
Hydra mautrix-signal Hydra build #50189 of nix-packages:aarch64-linux-master-pr271:mautrix-signal
Hydra woodpecker-cli Hydra build #50190 of nix-packages:aarch64-linux-master-pr271:woodpecker-cli
Hydra mautrix-cleanup Hydra build #50191 of nix-packages:aarch64-linux-master-pr271:mautrix-cleanup
Hydra hydra-unstable Hydra build #50192 of nix-packages:aarch64-linux-master-pr271:hydra-unstable
Hydra wordpress-plugins.syndication-links Hydra build #50193 of nix-packages:aarch64-linux-master-pr271:wordpress-plugins.syndication-links
Hydra emoji-lotte Hydra build #50194 of nix-packages:aarch64-linux-master-pr271:emoji-lotte
Hydra wordpress-plugins.activitypub Hydra build #50195 of nix-packages:aarch64-linux-master-pr271:wordpress-plugins.activitypub
Hydra emoji-volpeon-vlpn Hydra build #50196 of nix-packages:aarch64-linux-master-pr271:emoji-volpeon-vlpn
Hydra alco-sans Hydra build #50197 of nix-packages:aarch64-linux-master-pr271:alco-sans
Hydra old-homepage Hydra build #50198 of nix-packages:aarch64-linux-master-pr271:old-homepage
Hydra matrix-media-repo Hydra build #50199 of nix-packages:aarch64-linux-master-pr271:matrix-media-repo
Hydra wordpress-plugins.indieauth Hydra build #50200 of nix-packages:aarch64-linux-master-pr271:wordpress-plugins.indieauth
Hydra wordpress-plugins.ilab-media-tools Hydra build #50201 of nix-packages:aarch64-linux-master-pr271:wordpress-plugins.ilab-media-tools
Hydra pleroma-fe Hydra build #50202 of nix-packages:aarch64-linux-master-pr271:pleroma-fe
Hydra mautrix-telegram Hydra build #50203 of nix-packages:aarch64-linux-master-pr271:mautrix-telegram
Hydra wordpress-plugins.modern-footnotes Hydra build #50204 of nix-packages:aarch64-linux-master-pr271:wordpress-plugins.modern-footnotes
Hydra emoji-caro Hydra build #50205 of nix-packages:aarch64-linux-master-pr271:emoji-caro
Hydra constructium Hydra build #50206 of nix-packages:aarch64-linux-master-pr271:constructium
Hydra fairfax-hd Hydra build #50207 of nix-packages:aarch64-linux-master-pr271:fairfax-hd
Hydra python-tulir-telethon Hydra build #50208 of nix-packages:aarch64-linux-master-pr271:python-tulir-telethon
Hydra fcitx5 Hydra build #50209 of nix-packages:aarch64-linux-master-pr271:fcitx5
Hydra plover-dict-didoesdigital Hydra build #50210 of nix-packages:aarch64-linux-master-pr271:plover-dict-didoesdigital
Hydra emoji-volpeon-bunhd-flip Hydra build #50211 of nix-packages:aarch64-linux-master-pr271:emoji-volpeon-bunhd-flip
Hydra papermc Hydra build #50212 of nix-packages:aarch64-linux-master-pr271:papermc
Hydra wordpress-plugins.indieweb Hydra build #50213 of nix-packages:aarch64-linux-master-pr271:wordpress-plugins.indieweb
Hydra wordpress-plugins.polylang Hydra build #50214 of nix-packages:aarch64-linux-master-pr271:wordpress-plugins.polylang
Hydra wordpress-plugins.modern-images-wp Hydra build #50215 of nix-packages:aarch64-linux-master-pr271:wordpress-plugins.modern-images-wp
Hydra plover-plugin-rkb1-hid Hydra build #50216 of nix-packages:aarch64-linux-master-pr271:plover-plugin-rkb1-hid
Hydra wordpress-themes.twentytwentythree Hydra build #50217 of nix-packages:aarch64-linux-master-pr271:wordpress-themes.twentytwentythree
Hydra python-rtf-tokenize Hydra build #50218 of nix-packages:aarch64-linux-master-pr271:python-rtf-tokenize
Hydra kreative-square Hydra build #50219 of nix-packages:aarch64-linux-master-pr271:kreative-square
Hydra emoji-volpeon-drgn Hydra build #50220 of nix-packages:aarch64-linux-master-pr271:emoji-volpeon-drgn
Hydra wordpress-themes.sempress Hydra build #50221 of nix-packages:aarch64-linux-master-pr271:wordpress-themes.sempress
Hydra wordpress-plugins.the-plus-addons-for-block-editor Hydra build #50222 of nix-packages:aarch64-linux-master-pr271:wordpress-plugins.the-plus-addons-for-block-editor
Hydra woodpecker-agent Hydra build #50223 of nix-packages:aarch64-linux-master-pr271:woodpecker-agent
Hydra plover Hydra build #50224 of nix-packages:aarch64-linux-master-pr271:plover
Hydra wordpress-plugins.google-sitemap-generator Hydra build #50225 of nix-packages:aarch64-linux-master-pr271:wordpress-plugins.google-sitemap-generator
Hydra wordpress-plugins.hum Hydra build #50226 of nix-packages:aarch64-linux-master-pr271:wordpress-plugins.hum
Hydra wordpress-plugins.jetpack Hydra build #50227 of nix-packages:aarch64-linux-master-pr271:wordpress-plugins.jetpack
Hydra lotte-art Hydra build #50228 of nix-packages:aarch64-linux-master-pr271:lotte-art
Hydra miifox-net Hydra build #50229 of nix-packages:aarch64-linux-master-pr271:miifox-net
Hydra nasin-nanpa Hydra build #50230 of nix-packages:aarch64-linux-master-pr271:nasin-nanpa
Hydra wordpress-plugins.indieweb-post-kinds Hydra build #50231 of nix-packages:aarch64-linux-master-pr271:wordpress-plugins.indieweb-post-kinds
Hydra fairfax Hydra build #50232 of nix-packages:aarch64-linux-master-pr271:fairfax
Hydra plover-plugin-tapey-tape Hydra build #50233 of nix-packages:aarch64-linux-master-pr271:plover-plugin-tapey-tape
Hydra wordpress-plugins.micropub Hydra build #50234 of nix-packages:aarch64-linux-master-pr271:wordpress-plugins.micropub
Hydra emoji-volpeon-blobfox Hydra build #50235 of nix-packages:aarch64-linux-master-pr271:emoji-volpeon-blobfox
Hydra wordpress-plugins.webfinger Hydra build #50236 of nix-packages:aarch64-linux-master-pr271:wordpress-plugins.webfinger
fix mautrix-signal
2023-06-14 19:37:15 +01:00

65 lines
1.7 KiB
Nix

{
lib,
python3,
fetchFromGitHub,
}: let
source = builtins.fromJSON (builtins.readFile ./source.json);
in
python3.pkgs.buildPythonPackage rec {
pname = "mautrix-signal";
version = source.date;
src = fetchFromGitHub {
owner = "mautrix";
repo = "signal";
inherit (source) rev sha256;
};
propagatedBuildInputs = with python3.pkgs; [
CommonMark
aiohttp
asyncpg
attrs
(python3.pkgs.callPackage ../../python/mautrix-1.19.nix {})
phonenumbers
pillow
prometheus-client
pycryptodome
python-olm
python-magic
qrcode
ruamel-yaml
unpaddedbase64
yarl
];
doCheck = false;
postPatch = ''
substituteInPlace requirements.txt \
--replace "asyncpg>=0.20,<0.26" "asyncpg>=0.20" \
--replace "mautrix<0.19,>=0.18.9" "mautrix>=0.18.9"
'';
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 \
--prefix PATH : "${python3}/bin" \
--prefix PYTHONPATH : "$PYTHONPATH"
'';
meta = with lib; {
homepage = "https://github.com/mautrix/signal";
description = "A Matrix-Signal puppeting bridge";
license = licenses.agpl3Plus;
platforms = platforms.linux;
};
passthru.updateScript = [
../../scripts/update-git.sh
"https://github.com/mautrix/signal"
"matrix/mautrix-signal/source.json"
];
}