[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#62284] [PATCH 70/70] gnu: Add mautrix-whatsapp.
From: |
conses |
Subject: |
[bug#62284] [PATCH 70/70] gnu: Add mautrix-whatsapp. |
Date: |
Mon, 20 Mar 2023 00:51:55 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
* gnu/packages/matrix.scm (mautrix-whatsapp): New variable.
---
gnu/packages/matrix.scm | 73 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 73 insertions(+)
diff --git a/gnu/packages/matrix.scm b/gnu/packages/matrix.scm
index 4d5be03265..80fb87b6b0 100644
--- a/gnu/packages/matrix.scm
+++ b/gnu/packages/matrix.scm
@@ -34,6 +34,8 @@ (define-module (gnu packages matrix)
#:use-module (gnu packages python-crypto)
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
+ #:use-module (gnu packages syncthing)
+ #:use-module (gnu packages video)
#:use-module (gnu packages xml)
#:use-module (guix build-system python)
#:use-module (guix build-system go)
@@ -88,6 +90,77 @@ (define-public go-maunium-net-go-mautrix
@end itemize")
(license license:mpl2.0)))
+(define-public mautrix-whatsapp
+ (package
+ (name "mautrix-whatsapp")
+ (version "0.8.3")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/mautrix/whatsapp")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1061fx06xk1mf1j1sbgyfcc5g1jkn5jpv56r04cj0gixd0lqlb5d"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:install-source? #f
+ #:import-path "maunium.net/go/mautrix-whatsapp"
+ #:go go-1.19
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'fix-symlinks
+ (lambda _
+ (delete-file-recursively "src/go.mau.fi/whatsmeow")
+ (copy-recursively (string-append #$(this-package-input
+ "go-mau-fi-whatsmeow")
+ "/src/go.mau.fi/whatsmeow")
+ (string-append (getenv "GOPATH")
+ "/src/go.mau.fi/whatsmeow"))
+ (delete-file-recursively
+ "src/github.com/chai2010/webp")
+ (copy-recursively
+ (string-append #$(this-package-input
+ "go-github-com-chai2010-webp")
+ "/src/github.com/chai2010/webp")
+ (string-append (getenv "GOPATH")
+ "/src/github.com/chai2010/webp"))
+ (delete-file-recursively
+ "src/maunium.net/go/mautrix")
+ (copy-recursively
+ (string-append #$(this-package-input
+ "go-maunium-net-go-mautrix")
+ "/src/maunium.net/go/mautrix")
+ (string-append (getenv "GOPATH")
+ "/src/maunium.net/go/mautrix")))))))
+ (native-inputs (list libolm ffmpeg))
+ (propagated-inputs
+ (list go-github-com-chai2010-webp
+ go-github-com-gorilla-mux
+ go-github-com-gorilla-websocket
+ go-github-com-lib-pq
+ go-github-com-mattn-go-sqlite3
+ go-github-com-prometheus-client-golang
+ go-github-com-skip2-go-qrcode
+ go-github-com-tidwall-gjson
+ go-github-com-tidwall-sjson
+ go-github-com-yuin-goldmark
+ go-golang-org-x-image
+ go-golang-org-x-text
+ go-google-golang-org-protobuf-proto
+ go-gopkg-in-yaml-v2
+ go-mau-fi-whatsmeow
+ go-maunium-net-go-mauflag
+ go-maunium-net-go-maulogger
+ go-maunium-net-go-mautrix))
+ (home-page "https://github.com/mautrix/whatsapp")
+ (synopsis "A Matrix-WhatsApp puppeting bridge")
+ (description "A Matrix-WhatsApp puppeting bridge based on
+@code{whatsmeow}.")
+ (license license:agpl3)))
+
(define-public python-matrix-client
(package
(name "python-matrix-client")
--
2.39.1
--
Best regards,
conses
- [bug#62284] [PATCH 59/70] gnu: Add go-mau-fi-libsignal-util-medium., (continued)
- [bug#62284] [PATCH 59/70] gnu: Add go-mau-fi-libsignal-util-medium., conses, 2023/03/19
- [bug#62284] [PATCH 61/70] gnu: Add go-github-com-rs-xid., conses, 2023/03/19
- [bug#62284] [PATCH 65/70] gnu: Add go-github-com-rs-zerolog., conses, 2023/03/19
- [bug#62284] [PATCH 63/70] gnu: Add go-github-com-coreos-go-systemd., conses, 2023/03/19
- [bug#62284] [PATCH 62/70] gnu: go-github-com-mattn-go-isatty: Update to 0.1.13., conses, 2023/03/19
- [bug#62284] [PATCH 64/70] gnu: Add go-github-com-coreos-go-systemd-journal., conses, 2023/03/19
- [bug#62284] [PATCH 66/70] gnu: Add go-mau-fi-zeroconfig., conses, 2023/03/19
- [bug#62284] [PATCH 68/70] gnu: go-github-com-mattn-go-sqlite3: Update to 1.14.16., conses, 2023/03/19
- [bug#62284] [PATCH 69/70] gnu: Add go-github-com-chai2010-webp., conses, 2023/03/19
- [bug#62284] [PATCH 67/70] gnu: Add go-maunium-net-go-mautrix., conses, 2023/03/19
- [bug#62284] [PATCH 70/70] gnu: Add mautrix-whatsapp.,
conses <=