aboutsummaryrefslogtreecommitdiff
path: root/maintainers
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-07-28 22:57:51 +0200
committerEelco Dolstra <edolstra@gmail.com>2021-07-28 22:58:25 +0200
commit48e35585a6f23b05647cef12bcc85eeab3ae1d59 (patch)
tree2512e386753f3d4a3d3fb55f41abac5c0291884b /maintainers
parentc5ade241f0f3384b3a7142c8c1d9fa25678dcdbc (diff)
upload-release.pl: Fix deprecated 'nix' calls
Diffstat (limited to 'maintainers')
-rwxr-xr-xmaintainers/upload-release.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/maintainers/upload-release.pl b/maintainers/upload-release.pl
index 3a8d27499..66ccf1443 100755
--- a/maintainers/upload-release.pl
+++ b/maintainers/upload-release.pl
@@ -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";