use_guix() { if [ -f channels.scm ] then log_status "Using Guix version from channels.scm" export GUIX_ENVIRONMENT=$(guix time-machine -C channels.scm -- environment "$@" -- bash -c 'echo $GUIX_ENVIRONMENT') eval "$(guix time-machine -C channels.scm -- environment "$@" --search-paths)" else export GUIX_ENVIRONMENT=$(guix environment "$@" -- bash -c 'echo $GUIX_ENVIRONMENT') eval "$(guix environment "$@" --search-paths)" fi }