mirror of https://github.com/bqv/weechat-xmpp
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
3.1 KiB
Scheme
85 lines
3.1 KiB
Scheme
(define-module (weechat)
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
#:use-module (guix download)
|
|
#:use-module (guix git-download)
|
|
#:use-module (guix utils)
|
|
#:use-module (guix packages)
|
|
#:use-module (guix utils)
|
|
#:use-module (guix build-system cmake)
|
|
#:use-module (guix build-system gnu)
|
|
#:use-module (guix build-system meson)
|
|
#:use-module (guix build-system python)
|
|
#:use-module (guix build-system qt)
|
|
#:use-module (gnu packages)
|
|
#:use-module (gnu packages admin)
|
|
#:use-module (gnu packages aspell)
|
|
#:use-module (gnu packages autogen)
|
|
#:use-module (gnu packages autotools)
|
|
#:use-module (gnu packages base)
|
|
#:use-module (gnu packages backup)
|
|
#:use-module (gnu packages check)
|
|
#:use-module (gnu packages compression)
|
|
#:use-module (gnu packages curl)
|
|
#:use-module (gnu packages cyrus-sasl)
|
|
#:use-module (gnu packages databases)
|
|
#:use-module (gnu packages file)
|
|
#:use-module (gnu packages gettext)
|
|
#:use-module (gnu packages geo)
|
|
#:use-module (gnu packages glib)
|
|
#:use-module (gnu packages gnome)
|
|
#:use-module (gnu packages gnupg)
|
|
#:use-module (gnu packages gtk)
|
|
#:use-module (gnu packages guile)
|
|
#:use-module (gnu packages irc)
|
|
#:use-module (gnu packages lua)
|
|
#:use-module (gnu packages lxqt)
|
|
#:use-module (gnu packages ncurses)
|
|
#:use-module (gnu packages openldap)
|
|
#:use-module (gnu packages kde)
|
|
#:use-module (gnu packages kde-frameworks)
|
|
#:use-module (gnu packages password-utils)
|
|
#:use-module (gnu packages pcre)
|
|
#:use-module (gnu packages perl)
|
|
#:use-module (gnu packages pkg-config)
|
|
#:use-module (gnu packages python)
|
|
#:use-module (gnu packages python-crypto)
|
|
#:use-module (gnu packages python-xyz)
|
|
#:use-module (gnu packages regex)
|
|
#:use-module (gnu packages ruby)
|
|
#:use-module (gnu packages sphinx)
|
|
#:use-module (gnu packages sqlite)
|
|
#:use-module (gnu packages qt)
|
|
#:use-module (gnu packages tcl)
|
|
#:use-module (gnu packages textutils)
|
|
#:use-module (gnu packages time)
|
|
#:use-module (gnu packages tls)
|
|
#:use-module (gnu packages web)
|
|
#:use-module (srfi srfi-1)
|
|
#:use-module (srfi srfi-26))
|
|
|
|
(define-public weechat-dbg
|
|
(package
|
|
(inherit weechat)
|
|
(outputs '("out" "debug"))
|
|
(arguments
|
|
(substitute-keyword-arguments (package-arguments weechat)
|
|
((#:configure-flags configure-flags)
|
|
`(cons*
|
|
"-DCMAKE_BUILD_TYPE=DEBUG"
|
|
"-DCMAKE_C_FLAGS_DEBUG=\"-O0\""
|
|
"-DCMAKE_CXX_FLAGS_DEBUG=\"-O0\""
|
|
,configure-flags))
|
|
((#:phases phases)
|
|
`(modify-phases ,phases
|
|
(add-before 'configure 'setenv
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
(gcc (assoc-ref inputs "gcc-toolchain"))
|
|
(cppflags (string-append " -gdwarf-4 " (or (getenv "CXXFLAGS") "")))
|
|
(cflags (string-append " -gdwarf-4 " (or (getenv "CFLAGS") ""))))
|
|
(setenv "CXX" (string-append gcc "/bin/gcc " cppflags))
|
|
(setenv "CC" (string-append gcc "/bin/gcc " cflags))
|
|
#t)))))))))
|
|
|
|
weechat-dbg
|