From e56e743f971302f931ffd197462abb37970b1a5a Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Wed, 10 Dec 2014 23:06:52 -0500 Subject: [PATCH] S3Backup: Create a proper nar --- src/lib/Hydra/Plugin/S3Backup.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Plugin/S3Backup.pm b/src/lib/Hydra/Plugin/S3Backup.pm index e864c33c..a6d3ac85 100644 --- a/src/lib/Hydra/Plugin/S3Backup.pm +++ b/src/lib/Hydra/Plugin/S3Backup.pm @@ -96,7 +96,7 @@ sub buildFinished { } next unless @incomplete_buckets; 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); $digest->addfile("$tempdir/nar"); my $file_hash = $digest->hexdigest;