* Store the NAR size in the manifest.
This commit is contained in:
parent
5693b8a7e2
commit
06699d4219
2 changed files with 7 additions and 1 deletions
|
|
@ -193,6 +193,10 @@ for (my $n = 0; $n < scalar @storePaths; $n++) {
|
|||
die "cannot query hash for `$storePath'" if $? != 0;
|
||||
chomp $narHash;
|
||||
|
||||
my $narSize = `$binDir/nix-store --query --size '$storePath'`;
|
||||
die "cannot query size for `$storePath'" if $? != 0;
|
||||
chomp $narSize;
|
||||
|
||||
my $url;
|
||||
if ($localCopy) {
|
||||
$url = "$targetArchivesUrl/$narName";
|
||||
|
|
@ -204,6 +208,7 @@ for (my $n = 0; $n < scalar @storePaths; $n++) {
|
|||
, hash => "$hashAlgo:$narbz2Hash"
|
||||
, size => $narbz2Size
|
||||
, narHash => "$narHash"
|
||||
, narSize => $narSize
|
||||
, references => $references
|
||||
, deriver => $deriver
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue