about summary refs log tree commit diff
path: root/third_party/nix/scripts/setup_store.sh
blob: ee96c8d3b853a9bed3b5bf99fb11baf8d90ba167 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/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}"