A fast and simple blog backend.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
set -e
|
|
|
|
test_dir="$(mktemp -d)"
|
|
trap "rm -rf $test_dir" EXIT
|
|
|
|
mkdir -p "$test_dir"/run
|
|
mkdir -p "$test_dir"/data
|
|
|
|
test_cfg="(import ./config.nix) // {
|
|
runDir=\"${test_dir}/run\";
|
|
dataDir=\"${test_dir}/data\";
|
|
}"
|
|
|
|
nix-shell -A shell --arg config "$test_cfg" "$@"
|
|
|