Setup.pm: specify NIX_ env vars for running yath

Otherwise yath will try to use global configuration.
This commit is contained in:
Graham Christensen
2021-04-14 14:19:10 -04:00
committed by Graham Christensen
parent 74d34c0f80
commit c7ac123dc5
+2
View File
@@ -56,6 +56,8 @@ sub test_init {
close $fh;
$ENV{'NIX_LOG_DIR'} = "$dir/nix/var/log/nix";
$ENV{'NIX_REMOTE_SYSTEMS'} = '';
$ENV{'NIX_REMOTE'} = '';
$ENV{'NIX_STATE_DIR'} = "$dir/nix/var/nix";
$ENV{'NIX_STORE_DIR'} = "$dir/nix/store";