gnu: matterbridge: update to 1.24.0

* gnu/packages/messaging.scm (matterbridge): Update to 1.24.0.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Denis 'GNUtoo' Carikli 2022-02-24 21:40:48 +01:00 committed by Ludovic Courtès
parent fee68a93d8
commit d7a30c6e1d
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -3108,23 +3108,52 @@ (define-public zulip-term
(define-public matterbridge (define-public matterbridge
(package (package
(name "matterbridge") (name "matterbridge")
(version "1.22.2") (version "1.24.0")
(source (source (origin
(origin (method git-fetch)
(method git-fetch) (uri (git-reference
(uri (git-reference (url "https://github.com/42wim/matterbridge")
(url "https://github.com/42wim/matterbridge") (commit (string-append "v" version))))
(commit (string-append "v" version)))) (file-name (git-file-name name version))
(file-name (git-file-name name version)) (sha256
(sha256 (base32
(base32 "0cd70x9685162c0imdici1ipl9lziq700wzyb5bsg610wfak3ms7"))))
"07rgdc4v043fhzsalmlhickqizk6xjlpjkzn6l5v9ryp5gmv580z")))) ;; Using the go-build-system results in the same error message
(build-system go-build-system) ;; than in the bug 1551[1]. So we fix it by running go build
;; manually in the git repository as-is as this is the solution
;; given to that bug by the matterbridge developers.
;; [1]https://github.com/42wim/matterbridge/issues/1551
(build-system gnu-build-system)
(arguments (arguments
`(#:import-path "github.com/42wim/matterbridge" `(#:phases (modify-phases %standard-phases
#:unpack-path "github.com/42wim/matterbridge")) (delete 'configure)
(replace 'build
(lambda* (#:key outputs #:allow-other-keys)
(setenv "GOCACHE"
(string-append (getcwd) "/go-build"))
(setenv "GOBIN"
(string-append (assoc-ref outputs "out") "/bin"))
(invoke "go" "build" "-v" "-x")))
(replace 'check
(lambda* (#:key outputs tests? #:allow-other-keys)
(when tests?
(setenv "GOCACHE"
(string-append (getcwd) "/go-build"))
(setenv "GOBIN"
(string-append (assoc-ref outputs "out")
"/bin"))
(invoke "go" "test" "-v" "-x"))))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(setenv "GOCACHE"
(string-append (getcwd) "/go-build"))
(setenv "GOBIN"
(string-append (assoc-ref outputs "out") "/bin"))
(invoke "go" "install" "-v" "-x"))))))
(native-inputs (list go))
(synopsis "Bridge together various messaging networks and protocols") (synopsis "Bridge together various messaging networks and protocols")
(description "Relays messages between different channels from various (description
"Relays messages between different channels from various
messaging networks and protocols. So far it supports mattermost, IRC, gitter, messaging networks and protocols. So far it supports mattermost, IRC, gitter,
xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp, xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp,
keybase, matrix, microsoft teams, nextcloud, mumble, vk and more with REST keybase, matrix, microsoft teams, nextcloud, mumble, vk and more with REST