forked from lix-project/lix
Add a test for the --accept-flake-config
option
This commit is contained in:
parent
30496af598
commit
83af9550a1
|
@ -25,11 +25,5 @@ cat <<EOF > flake.nix
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Ugly hack for testing
|
nix build --accept-flake-config
|
||||||
mkdir -p .local/share/nix
|
|
||||||
cat <<EOF > .local/share/nix/trusted-settings.json
|
|
||||||
{"post-build-hook":{"$PWD/echoing-post-hook.sh":true}}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
nix build
|
|
||||||
test -f post-hook-ran || fail "The post hook should have ran"
|
test -f post-hook-ran || fail "The post hook should have ran"
|
||||||
|
|
Loading…
Reference in a new issue