Collin J. Doering
82d35fb65e
* .envrc: Due to the update of the guix channel in channels.scm, CROSS_LIBRARY_PATH needs to be set so avr-gcc can find avr-libc. * channels.scm: Update guix channel. * keyboards/keebio/levinson/keymaps/rekahsoft/keymap.c: Various updates following rebasing my changes onto the tip of upstream qmk. (#include): keymap_steno.h no longer needs to be explicitly included (there is a warning otherwise). (_ADJUST): Lowered to 6 so that the sizeof my keymap is small, avoiding the check in quantum/keymap_introspection.c:31 which results in a error "Number of keymap layers exceeds maximum set by LAYER_STATE_(8|16|32)BIT". Its worth noting that this error can be overcome by simply commenting out the check in quantum/keymap_introspection.c:31, however, adjusting this is preferred. (keymaps): RESET keycode is no longer available. QK_REBOOT effectively replaces it.
17 lines
728 B
Plaintext
17 lines
728 B
Plaintext
use_guix-shell() {
|
|
CHANNEL_FILE=channels.scm
|
|
if [ -f $CHANNEL_FILE ]; then
|
|
eval "$(guix time-machine -C $CHANNEL_FILE -- shell "$@" -- bash -c 'echo export GUIX_ENVIRONMENT=${GUIX_ENVIRONMENT}')"
|
|
eval "$(guix time-machine -C $CHANNEL_FILE -- shell "$@" --search-paths)"
|
|
else
|
|
eval "$(guix shell "$@" -- bash -c 'echo export GUIX_ENVIRONMENT=${GUIX_ENVIRONMENT}')"
|
|
eval "$(guix shell "$@" --search-paths)"
|
|
fi
|
|
}
|
|
|
|
use guix-shell gcc-cross-avr-toolchain avrdude make python-wrapper qmk git coreutils sed grep bash gawk diffutils
|
|
|
|
# TODO: currently the following needs to be set to allow the linker to find avr-libc
|
|
# See: https://issues.guix.gnu.org/69394
|
|
export CROSS_LIBRARY_PATH=$GUIX_ENVIRONMENT/avr/lib/
|