Skip to content

Instantly share code, notes, and snippets.

@nouun

nouun/.envrc Secret

Created June 17, 2022 05:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nouun/37a8a4707bf366ebb43f224d431594e8 to your computer and use it in GitHub Desktop.
Save nouun/37a8a4707bf366ebb43f224d431594e8 to your computer and use it in GitHub Desktop.
if command -v guix &> /dev/null; then
GLIBC_PATH=$(guix build -e '(@@ (gnu packages commencement) glibc-final)' | grep -v debug | grep -v static | tail --lines 1)
export LIBRARY_PATH="$GLIBC_PATH/lib/"
eval "$(guix environment --manifest=guix-manifest.scm --search-paths)"
fi
export PICO_SDK_PATH="${PWD}/pico/pico-sdk"
export PICO_EXAMPLES_PATH="${PWD}/pico/pico-examples"
export PICO_EXTRAS_PATH="${PWD}/pico/pico-extras"
export PICO_PLAYGROUND_PATH="${PWD}/pico/pico-playground"
(use-modules
(guix packages))
(use-package-modules
base
commencement
; SDK Deps
cmake
embedded
; UART Deps
engineering)
(packages->manifest
(list
glibc
binutils
ld-wrapper
; SDK Deps
cmake
arm-none-eabi-toolchain-6
; OpenOCD Deps
openocd
; UART Deps
minicom))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment