1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-30 15:48:00 +02:00

Sign locally-built paths

Locally-built paths are now signed automatically using the secret keys
specified by the ‘secret-key-files’ option.
This commit is contained in:
Eelco Dolstra 2016-04-07 14:14:06 +02:00
parent dc82160164
commit e39999ed48
3 changed files with 24 additions and 1 deletions

View file

@ -2748,6 +2748,7 @@ void DerivationGoal::registerOutputs()
trusted. */
if (!info.ultimate) {
info.ultimate = true;
worker.store.signPathInfo(info);
worker.store.registerValidPaths({info});
}
@ -2808,6 +2809,8 @@ void DerivationGoal::registerOutputs()
info.references = references;
info.deriver = drvPath;
info.ultimate = true;
worker.store.signPathInfo(info);
infos.push_back(info);
}