waycast/.envrc

16 lines
317 B
Bash

# Use the Nix shell
use nix
# Optional: Layout for different build types
layout() {
case $1 in
cpp)
# Add any C++ specific environment setup here
export CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:-Debug}
export CMAKE_EXPORT_COMPILE_COMMANDS=ON
;;
esac
}
# Activate the cpp layout
layout cpp