When using the "build" or "sysbuild" jobset input types in conjunction with a binary cache store, the evaluator needs to be able to fetch store paths from the binary cache. Typical usage:
store_uri = s3://nix-test-cache?secret-key=… eval_substituter = s3://nix-test-cache
Also, the public key of the binary cache must be added to binary-cache-public-keys in nix.conf, otherwise the local nix-daemon won't allow the store paths to be copied over.
UEMB7PTHRX5KKVEFHACAES5ZNVMRYRD43UL6LSMBSOACEG532FCQC
}
# Fetch a store path from 'eval_substituter' if not already present.
sub getPath {
my ($path) = @_;
return 1 if isValidPath($path);
my $substituter = $config->{eval_substituter};
system("nix", "copy", "--from", $substituter, "--", $path)
if defined $substituter;
return isValidPath($path);