tvl-depot/third_party/nix/scripts/setup_store.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
440 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -euo pipefail
# Setup a store for local development rooted at the current directory, and
# compatible with the scripts in this directory (repl.sh, build.sh, eval.sh,
# daemon.sh, etc). Intended to be run from the cmake build directory
mkdir -p nix/store nix/var/nix nix/var/log/nix
ln -s $(pwd)/src/nix ./nix/build-remote
mkdir -p $(dirname "$(pwd)${SANDBOX_SHELL}")
cp "${SANDBOX_SHELL}" "$(pwd)${SANDBOX_SHELL}"