depot/packages/build-support/activate-shell

7 lines
364 B
Text
Raw Normal View History

export REPO_ROOT="$(git rev-parse --show-toplevel)"
export REPO_DATA_DIR="$REPO_ROOT/.data"
if ! has nix_direnv_version || ! nix_direnv_version 2.1.0; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.1.0/direnvrc" "sha256-FAT2R9yYvVg516v3LiogjIc8YfsbWbMM/itqWsm5xTA="
fi
use flake "${REPO_ROOT}#${DEVSHELL_ATTR:-$(basename $PWD)}"