me
/
guix
Archived
1
0
Fork 0

gnu: bitlbee-discord: Update to 0.4.3-1.607f988.

Fixes <https://issues.guix.gnu.org/53840>.

* gnu/packages/messaging.scm (bitlbee-discord): Update to
0.4.3-1.607f988.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
master
Adam Maleszka 2022-02-07 16:47:56 +01:00 committed by Ludovic Courtès
parent d76cfc92da
commit 854e38eeb7
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 48 additions and 37 deletions

View File

@ -713,44 +713,55 @@ identi.ca and status.net).")
#f))))) #f)))))
(define-public bitlbee-discord (define-public bitlbee-discord
(package ;; Version 0.4.3 of bitlbee-discord was prepared to work for
(name "bitlbee-discord") ;; glib@2.68. However, version 2.69 of glib introduced a breaking change
(version "0.4.3") ;; causing bitlbee-discord to throw:
(source ;;
(origin ;; discord - Login error: Failed to switch to websocket mode
(method git-fetch) ;;
(uri (git-reference ;; This makes the plugin unable to connect and therefore unusable:
(url "https://github.com/sm00th/bitlbee-discord") ;; https://github.com/sm00th/bitlbee-discord/issues/226
(commit version))) ;; The specified commit fixes incompatibility with glib@2.69 and newer.
(file-name (git-file-name name version)) (let ((commit "607f9887ca85f246e970778e3d40aa5c346365a7")
(sha256 (revision "1"))
(base32 "00qgdvrp7hv02n0ns685igp810zxmv3adsama8601122al6x041n")))) (package
(build-system gnu-build-system) (name "bitlbee-discord")
(arguments (version (git-version "0.4.3" revision commit))
`(#:configure-flags (source
(let ((out (assoc-ref %outputs "out"))) (origin
(list (string-append "--with-bdatadir=" out "/share/bitlbee/") (method git-fetch)
(string-append "--with-plugindir=" out "/lib/bitlbee/"))) (uri (git-reference
#:phases (url "https://github.com/sm00th/bitlbee-discord")
(modify-phases %standard-phases (commit commit)))
(add-after 'unpack 'patch-autogen (file-name (git-file-name name version))
(lambda _ (sha256
(let ((sh (which "sh"))) (base32 "0jkwhx2walx2ay0vc9x13q0j1qq4r5x30ss03a3j7ks28xvsnxc7"))))
(substitute* "autogen.sh" (("/bin/sh") sh)) (build-system gnu-build-system)
(setenv "CONFIG_SHELL" sh))))))) (arguments
(inputs (list glib)) `(#:configure-flags
(native-inputs (list pkg-config (let ((out (assoc-ref %outputs "out")))
autoconf (list (string-append "--with-bdatadir=" out "/share/bitlbee/")
automake (string-append "--with-plugindir=" out "/lib/bitlbee/")))
texinfo #:phases
libtool (modify-phases %standard-phases
bitlbee ; needs bitlbee headers (add-after 'unpack 'patch-autogen
bash)) (lambda _
(synopsis "Discord plugin for Bitlbee") (let ((sh (which "sh")))
(description "Bitlbee-discord is a plugin for Bitlbee which provides (substitute* "autogen.sh" (("/bin/sh") sh))
(setenv "CONFIG_SHELL" sh)))))))
(inputs (list glib))
(native-inputs (list pkg-config
autoconf
automake
texinfo
libtool
bitlbee ; needs bitlbee headers
bash))
(synopsis "Discord plugin for Bitlbee")
(description "Bitlbee-discord is a plugin for Bitlbee which provides
access to servers running the Discord protocol.") access to servers running the Discord protocol.")
(home-page "https://github.com/sm00th/bitlbee-discord/") (home-page "https://github.com/sm00th/bitlbee-discord/")
(license license:gpl2+))) (license license:gpl2+))))
(define-public purple-mattermost (define-public purple-mattermost
;; The latest release (1.2) only supports Mattermost's /api/v3. Choose a ;; The latest release (1.2) only supports Mattermost's /api/v3. Choose a