Skip to content

Commit

Permalink
upload-release.pl: Fix deprecated 'nix' calls
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Jul 28, 2021
1 parent c5ade24 commit 48e3558
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maintainers/upload-release.pl
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ sub downloadFile {

if (!-e $tmpFile) {
print STDERR "downloading $srcFile to $tmpFile...\n";
system("NIX_REMOTE=https://cache.nixos.org/ nix cat-store '$srcFile' > '$tmpFile'") == 0
system("NIX_REMOTE=https://cache.nixos.org/ nix store cat '$srcFile' > '$tmpFile'") == 0
or die "unable to fetch $srcFile\n";
}

my $sha256_expected = $buildInfo->{buildproducts}->{$productNr}->{sha256hash} or die;
my $sha256_actual = `nix hash-file --base16 --type sha256 '$tmpFile'`;
my $sha256_actual = `nix hash file --base16 --type sha256 '$tmpFile'`;
chomp $sha256_actual;
if ($sha256_expected ne $sha256_actual) {
print STDERR "file $tmpFile is corrupt, got $sha256_actual, expected $sha256_expected\n";
Expand Down

0 comments on commit 48e3558

Please sign in to comment.