mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-07-21 03:52:08 +00:00
rosenthal: mautrix-telegram: Update to 0.2606.0.
* modules/rosenthal/packages/messaging.scm (mautrix-telegram): Update to 0.2606.0. [build-system]: Switch to go-vendored-build-system. [native-inputs, propagated-inputs, inputs]: Remove all old inputs. [inputs]: Add bash-minimal, ffmpeg, lottie-converter, olm.
This commit is contained in:
parent
5d5aefca89
commit
08ac8f2e93
@ -11,9 +11,12 @@
|
|||||||
#:use-module (guix git-download)
|
#:use-module (guix git-download)
|
||||||
;; Guix build systems
|
;; Guix build systems
|
||||||
#:use-module (guix build-system pyproject)
|
#:use-module (guix build-system pyproject)
|
||||||
|
#:use-module (rosenthal build-system go-vendored)
|
||||||
;; Guix packages
|
;; Guix packages
|
||||||
|
#:use-module (gnu packages bash)
|
||||||
#:use-module (gnu packages crypto)
|
#:use-module (gnu packages crypto)
|
||||||
#:use-module (gnu packages databases)
|
#:use-module (gnu packages databases)
|
||||||
|
#:use-module (gnu packages golang)
|
||||||
#:use-module (gnu packages monitoring)
|
#:use-module (gnu packages monitoring)
|
||||||
#:use-module (gnu packages python)
|
#:use-module (gnu packages python)
|
||||||
#:use-module (gnu packages python-build)
|
#:use-module (gnu packages python-build)
|
||||||
@ -62,7 +65,7 @@ users.")
|
|||||||
(define-public mautrix-telegram
|
(define-public mautrix-telegram
|
||||||
(package
|
(package
|
||||||
(name "mautrix-telegram")
|
(name "mautrix-telegram")
|
||||||
(version "0.15.3")
|
(version "0.2606.0")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
@ -71,58 +74,25 @@ users.")
|
|||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0ivhp827ypngq3p8m5bmiv1nk2x2c4y0z1c37rczjmq941dnlw63"))))
|
"08agcpd5na1l7j9ww03z9axwcayfidz4ac93zn9x0lm4c2s2maml"))))
|
||||||
(build-system pyproject-build-system)
|
(build-system go-vendored-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list #:tests? #f ;No test suite.
|
(list #:go go-1.26
|
||||||
|
#:vendor-hash
|
||||||
|
(base32 "0jmmn2bh8spjcc39q9l7z220vlbdk2plhy8jlqmk6rsi1qkdsl7r")
|
||||||
|
#:install-source? #f
|
||||||
|
#:import-path "./cmd/mautrix-telegram"
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'install 'install-extras
|
(add-after 'install 'wrap-binary
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(let* ((bindir (in-vicinity #$output "bin"))
|
(wrap-program (in-vicinity #$output "bin/mautrix-telegram")
|
||||||
(etcdir (in-vicinity #$output "etc/mautrix-telegram"))
|
`("PATH" ":" prefix
|
||||||
(bin (in-vicinity bindir "mautrix-telegram"))
|
,(map (lambda (cmd)
|
||||||
(cfg (in-vicinity #$output "example-config.yaml")))
|
(dirname (search-input-file inputs cmd)))
|
||||||
(for-each mkdir-p (list bindir etcdir))
|
'("bin/ffmpeg"
|
||||||
(install-file cfg etcdir)
|
"bin/lottieconverter")))))))))
|
||||||
(delete-file cfg)
|
(inputs (list bash-minimal ffmpeg lottie-converter olm))
|
||||||
(call-with-output-file bin
|
|
||||||
(lambda (port)
|
|
||||||
(format port "~
|
|
||||||
#!/bin/sh
|
|
||||||
PATH=~a:~a:$PATH
|
|
||||||
~a -m mautrix_telegram \"$@\"~%"
|
|
||||||
(dirname (dirname (search-input-file inputs "bin/ffmpeg")))
|
|
||||||
(dirname (dirname (search-input-file inputs "bin/lottieconverter")))
|
|
||||||
(search-input-file inputs "bin/python3"))))
|
|
||||||
(chmod bin #o555)))))))
|
|
||||||
|
|
||||||
(native-inputs
|
|
||||||
(list python-setuptools))
|
|
||||||
(propagated-inputs
|
|
||||||
(list python-asyncpg
|
|
||||||
python-commonmark
|
|
||||||
python-aiosqlite
|
|
||||||
python-magic
|
|
||||||
python-mako
|
|
||||||
python-mautrix
|
|
||||||
python-ruamel.yaml
|
|
||||||
python-tulir-telethon))
|
|
||||||
(inputs
|
|
||||||
(list ffmpeg
|
|
||||||
lottie-converter
|
|
||||||
python
|
|
||||||
python-aiodns
|
|
||||||
python-aiosqlite
|
|
||||||
python-brotli
|
|
||||||
python-olm
|
|
||||||
python-phonenumbers
|
|
||||||
python-pillow
|
|
||||||
python-prometheus-client
|
|
||||||
python-pycryptodome
|
|
||||||
python-qrcode
|
|
||||||
python-socks
|
|
||||||
python-unpaddedbase64))
|
|
||||||
(synopsis "Matrix-Telegram hybrid puppeting/relaybot bridge")
|
(synopsis "Matrix-Telegram hybrid puppeting/relaybot bridge")
|
||||||
(description
|
(description
|
||||||
"This package provides a Matrix-Telegram hybrid puppeting/relaybot
|
"This package provides a Matrix-Telegram hybrid puppeting/relaybot
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user