weechat-xmpp/.envrc

57 lines
1.7 KiB
Plaintext
Raw Normal View History

2021-06-25 22:39:20 +00:00
# -*- mode: sh; -*-
2022-01-11 17:28:36 +00:00
export CC=gcc CXX="g++ -fdiagnostics-color=always"
2021-06-25 22:39:20 +00:00
2022-01-11 17:28:36 +00:00
# Miscellaneous packages.
ENVIRONMENTS=(
weechat # Debug runs
profanity # Test
)
2021-06-25 22:39:20 +00:00
2022-01-11 17:28:36 +00:00
# Environment packages.
PACKAGES=(
profanity # Test
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
2022-01-11 23:12:31 +00:00
gcc-toolchain@11 # Compilation
2022-01-11 17:28:36 +00:00
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 -l libomemo.scm # Dep (libsignal)
lmdb lmdbxx # Dep (lmdb)
rnp # Dep (rnpgp)
2022-01-25 06:28:46 +00:00
xsd # Generate XML schema code
2022-01-11 17:28:36 +00:00
)
2021-06-25 22:39:20 +00:00
2022-01-11 17:28:36 +00:00
echo direnv: fetching source - weechat
mkdir -p /tmp/guix-build-weechat-3.2.drv-0
tar -C /tmp/guix-build-weechat-3.2.drv-0 -xJf $(guix build --source weechat)
2021-06-25 22:39:20 +00:00
2022-01-11 17:28:36 +00:00
echo direnv: fetching source - libomemo-c
mkdir -p /tmp/guix-build-libomemo-c-2.3.3.drv-0
ln -sf $(guix build --source -f libomemo.scm) /tmp/guix-build-libomemo-c-2.3.3.drv-0
echo direnv: fetching source - lmdb
ln -sf $(guix build --source lmdb)/libraries/liblmdb/mdb.c mdb.c
2021-06-25 22:39:20 +00:00
2021-07-22 04:04:15 +00:00
use guix \
2022-01-11 17:28:36 +00:00
${ENVIRONMENTS[@]} --ad-hoc ${PACKAGES[@]} \
2022-01-11 20:50:10 +00:00
--with-debug-info=profanity \
2022-01-11 17:28:36 +00:00
--with-debug-info=weechat \
--with-debug-info=libstrophe \
--with-debug-info=libsignal-protocol-c \
2022-01-11 20:50:10 +00:00
--with-debug-info=libomemo-c \
2022-01-11 17:28:36 +00:00
--with-debug-info=lmdb \
--with-debug-info=rnp \
clang clang:extra ccls gdb