Allow Hydra's binary cache to be signed
[?]
Jan 8, 2014, 2:19 PM
AJVEJENFDMRMPLDWK5OCUIKLS7APCCXDVID5SQMVLY3CIJMYPW3QCDependencies
- [2]
IDT3SO3PGenerate *.narinfo files on the fly to support the binary cache substituter
Change contents
- edit in src/lib/Hydra/View/NARInfo.pm at line 7
use Nix::Crypto; - edit in src/lib/Hydra/View/NARInfo.pm at line 31
}# Optionally, sign the NAR info file we just created.my $privateKeyFile = $c->config->{binary_cache_private_key_file};my $keyName = $c->config->{binary_cache_key_name};if (defined $privateKeyFile && defined $keyName) {my $sig = signString($privateKeyFile, $info);$info .= "Signature: 1;$keyName;$sig\n";