gnu: Add bitlbee-discord.

* gnu/packages/messaging.scm (bitlbee-discord): New variable.
This commit is contained in:
Pierre-Antoine Rouby 2018-05-07 11:47:04 +02:00 committed by Ludovic Courtès
parent 31060bff00
commit b992bfea74
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -203,6 +203,49 @@ (define-public bitlbee
(home-page "http://www.bitlbee.org/")
(license (list license:gpl2+ license:bsd-2))))
(define-public bitlbee-discord
(package
(name "bitlbee-discord")
(version "0.4.1")
(source (origin
(method url-fetch)
(uri
(string-append "https://github.com/sm00th/bitlbee-discord/"
"archive/" version ".tar.gz"))
(file-name (git-file-name name version))
(sha256
(base32
"1bwqxlg6fwj3749y7w69n9jwsdzf5nl9xqiszbpv9k8x1422i1y1"))))
(build-system gnu-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'autogen
(lambda _
(let ((sh (which "sh")))
(substitute* "autogen.sh" (("/bin/sh") sh))
(setenv "CONFIG_SHELL" sh)
(zero? (system* "./autogen.sh")))))
(replace 'configure
(lambda* (#:key inputs outputs #:allow-other-keys)
(invoke "./configure"
(string-append "--with-plugindir="
(assoc-ref outputs "out")
"/lib/bitlbee/")))))))
(inputs `(("glib" ,glib)))
(native-inputs `(("pkg-config" ,pkg-config)
("autoconf" ,autoconf)
("automake" ,automake)
("texinfo" ,texinfo)
("libtool" ,libtool)
("bitlbee" ,bitlbee) ;needs bitlbee headers
("bash" ,bash)))
(synopsis "Discord plugin for Bitlbee")
(description "Bitlbee-discord is a plugin for Bitlbee witch provides
access to servers running the Discord protocol.")
(home-page "https://github.com/sm00th/bitlbee-discord/")
(license license:gpl2+)))
(define-public hexchat
(package
(name "hexchat")