mirror of
https://github.com/luxfi/coreth.git
synced 2026-10-30 17:00:51 +00:00
20 lines
584 B
Bash
Executable File
20 lines
584 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (C) 2025, Lux Industries, Inc. All rights reserved.
|
|
|
|
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 LUX_VERSION
|
|
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
# shellcheck source=/scripts/constants.sh
|
|
source "$SCRIPT_DIR"/versions.sh
|
|
|
|
# Start a dev shell with the luxd flake
|
|
FLAKE="github:luxfi/node?ref=${LUX_VERSION}"
|
|
echo "Starting nix shell for ${FLAKE}"
|
|
nix develop "${FLAKE}" "${@}"
|