2021-07-27 12:17:56 +03:00
|
|
|
source common.sh
|
|
|
|
|
2021-10-15 15:15:43 +03:00
|
|
|
# Using `--eval-store` with the daemon will eventually copy everything
|
|
|
|
# to the build store, invalidating most of the tests here
|
2021-12-09 17:26:46 +02:00
|
|
|
needLocalStore "“--eval-store” doesn't achieve much with the daemon"
|
2021-07-26 07:54:55 +03:00
|
|
|
|
2021-07-27 12:17:56 +03:00
|
|
|
eval_store=$TEST_ROOT/eval-store
|
|
|
|
|
|
|
|
clearStore
|
|
|
|
rm -rf "$eval_store"
|
|
|
|
|
|
|
|
nix build -f dependencies.nix --eval-store "$eval_store" -o "$TEST_ROOT/result"
|
|
|
|
[[ -e $TEST_ROOT/result/foobar ]]
|
|
|
|
(! ls $NIX_STORE_DIR/*.drv)
|
|
|
|
ls $eval_store/nix/store/*.drv
|
|
|
|
|
|
|
|
clearStore
|
|
|
|
rm -rf "$eval_store"
|
|
|
|
|
|
|
|
nix-instantiate dependencies.nix --eval-store "$eval_store"
|
|
|
|
(! ls $NIX_STORE_DIR/*.drv)
|
|
|
|
ls $eval_store/nix/store/*.drv
|
|
|
|
|
|
|
|
clearStore
|
|
|
|
rm -rf "$eval_store"
|
|
|
|
|
|
|
|
nix-build dependencies.nix --eval-store "$eval_store" -o "$TEST_ROOT/result"
|
|
|
|
[[ -e $TEST_ROOT/result/foobar ]]
|
|
|
|
(! ls $NIX_STORE_DIR/*.drv)
|
|
|
|
ls $eval_store/nix/store/*.drv
|