nix-super/tests/flake-print-local-path-error.sh
2021-11-22 16:28:31 +01:00

14 lines
258 B
Bash

source common.sh
clearStore
rm -rf $TEST_HOME/.cache $TEST_HOME/.config $TEST_HOME/.local
cd $TEST_HOME
cat <<EOF > flake.nix
{
outputs = give me an error here;
}
EOF
nix build |& grep $TEST_HOME || fail "Path should point to home, not to the store"