summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0d4b078)
This test is supposed to exercise fetching from a remote trusted cache,
so a local build means that this didn't happen.
+ log-local-builds = writeShellScript "log-local-builds" ''
+ echo "$OUT_PATHS" >> /var/log/local-builds
+ '';
+
clientConfig = writeText "clientConfig" ''
{ lib, ... }: {
services.trustix-nix-cache = {
clientConfig = writeText "clientConfig" ''
{ lib, ... }: {
services.trustix-nix-cache = {
percentage.minimum = 66;
};
};
percentage.minimum = 66;
};
};
+ nix.extraOptions = '''
+ post-build-hook = ${log-local-builds}
+ ''';
"nixos-rebuild switch --show-trace",
)
clint.succeed("nix-build '<nixpkgs>' -A hello")
"nixos-rebuild switch --show-trace",
)
clint.succeed("nix-build '<nixpkgs>' -A hello")
+ clint.fail("grep hello /var/log/local-builds")