forked from lix-project/hydra
S3Backup: Create a proper nar
This commit is contained in:
parent
208bbbb4b0
commit
e56e743f97
|
@ -96,7 +96,7 @@ sub buildFinished {
|
||||||
}
|
}
|
||||||
next unless @incomplete_buckets;
|
next unless @incomplete_buckets;
|
||||||
my $compressor = $compressors{$compression_type};
|
my $compressor = $compressors{$compression_type};
|
||||||
system("$Nix::Config::binDir/nix-store --export $path $compressor > $tempdir/nar") == 0 or die;
|
system("$Nix::Config::binDir/nix-store --dump $path $compressor > $tempdir/nar") == 0 or die;
|
||||||
my $digest = Digest::SHA->new(256);
|
my $digest = Digest::SHA->new(256);
|
||||||
$digest->addfile("$tempdir/nar");
|
$digest->addfile("$tempdir/nar");
|
||||||
my $file_hash = $digest->hexdigest;
|
my $file_hash = $digest->hexdigest;
|
||||||
|
|
Loading…
Reference in a new issue