Files

24 lines
899 B
Bash

if [ -n "${LUXD_DIRENV_USE_FLAKE}" ]; then
if ! command -v nix > /dev/null; then
echo "To enable entering a dev shell via this .envrc: ./scripts/run_task.sh install-nix"
else
use flake
fi
fi
# Repo-local commands like ginkgo and tmpnetctl
PATH_add bin
# Configure the explicit built path of luxd for tmpnet usage
export LUXD_PATH="${LUXD_PATH:-$PWD/bin/luxd}"
# Configure the local plugin directory for both luxd and tmpnet usage
mkdir -p $PWD/build/plugins # luxd will FATAL if the directory does not exist
export LUXD_PLUGIN_DIR="${LUXD_PLUGIN_DIR:-$PWD/build/plugins}" # Use an existing value if set
# Default to tmpnetctl targeting the last deployed tmpnet network
export TMPNET_NETWORK_DIR="${TMPNET_NETWORK_DIR:-${HOME}/.tmpnet/networks/latest}"
# Allow individuals to add their own customisation
source_env_if_exists .envrc.local