Files
evm/scripts/dev_shell.sh
T
37ff0fc4d7 Docker image combined tag (#1566)
Signed-off-by: Martin Eckardt <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Martin Eckardt <[email protected]>
Co-authored-by: Michael Kaplan <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
2025-04-24 11:56:27 +00:00

19 lines
550 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# Requires nix to be installed. The determinate systems installer is recommended:
#
# https://github.com/DeterminateSystems/nix-installer?tab=readme-ov-file#install-nix
#
# Load AVALANCHE_VERSION
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=/scripts/constants.sh
source "$SCRIPT_DIR"/constants.sh
# Start a dev shell with the avalanchego flake
FLAKE="github:ava-labs/avalanchego?ref=${AVALANCHE_VERSION}"
echo "Starting nix shell for ${FLAKE}"
nix develop "${FLAKE}" "${@}"