|
|
|
# -*- mode: sh; -*-
|
|
|
|
|
|
|
|
export CC=gcc CXX=g++
|
|
|
|
|
|
|
|
# Miscellaneous packages.
|
|
|
|
ENVIRONMENTS=(
|
|
|
|
weechat # Debug runs
|
|
|
|
)
|
|
|
|
|
|
|
|
# Environment packages.
|
|
|
|
PACKAGES=(
|
|
|
|
autoconf # Deps with autoreconf
|
|
|
|
autoconf-archive # Deps with m4 tooling
|
|
|
|
automake # Deps with automake
|
|
|
|
libtool # Deps with libtool
|
|
|
|
make # Deps with makefiles
|
|
|
|
cmake # Deps with cmake
|
|
|
|
doctest # Testing
|
|
|
|
gcc-toolchain@10 # Compilation
|
|
|
|
pkg-config # Deps configuration and configuration of deps deps
|
|
|
|
patchelf # Fix linkage (guix)
|
|
|
|
bear # Generate compile_commands.json for language servers
|
|
|
|
universal-ctags # Generate tags (make tags)
|
|
|
|
weechat # Weechat includes
|
|
|
|
libxml2 # Dep (libxml2)
|
|
|
|
libstrophe # Dep (strophe)
|
|
|
|
libgcrypt # Dep (gcrypt)
|
|
|
|
libsignal-protocol-c # Dep (libsignal)
|
|
|
|
lmdb lmdbxx # Dep (lmdb)
|
|
|
|
rnp # Dep (rnpgp)
|
|
|
|
)
|
|
|
|
|
|
|
|
use guix \
|
|
|
|
${ENVIRONMENTS[@]} --ad-hoc ${PACKAGES[@]} \
|
|
|
|
--with-debug-info=weechat\
|
|
|
|
--with-debug-info=libstrophe\
|
|
|
|
--with-debug-info=libsignal-protocol-c\
|
|
|
|
--with-debug-info=lmdb\
|
|
|
|
--with-debug-info=rnp\
|
|
|
|
clang:extra gdb
|