@@ -1,5 +1,5 @@
11#! /usr/bin/env nix-shell
2−#! nix-shell -i perl -p perl perlPackages.NetAmazonS3 perlPackages.FileSlurp nixUnstable nixUnstable.perl-bindings
2+#! nix-shell -i perl -p perl perlPackages.NetAmazonS3 perlPackages.FileSlurp perlPackages.JSON perlPackages.LWPProtocolHttps nixUnstable nixUnstable.perl-bindings
33
44# This command uploads tarballs to tarballs.nixos.org, the
55# content-addressed cache used by fetchurl as a fallback for when
@@ -101,8 +101,8 @@ sub uploadFile {
101101 my ($name, $dest) = @_;
102102 #print STDERR "linking $name to $dest...\n";
103103 $bucket->add_key($name, "", {
104− 'x-amz-website-redirect-location' => "/" . $dest,
105− 'x-amz-acl' => "public-read"
104+ 'x-amz-website-redirect-location' => "/" . $dest,
105+ 'x-amz-acl' => "public-read"
106106 })
107107 or die "failed to create redirect from $name to $dest\n";
108108 $cache{$name} = 1;
@@ -116,8 +116,8 @@ sub uploadFile {
116116 # Upload the file as sha512/<hash-in-base-16>.
117117 print STDERR "uploading $fn to $mainKey...\n";
118118 $bucket->add_key_filename($mainKey, $fn, {
119− 'x-amz-meta-original-name' => $name,
120− 'x-amz-acl' => "public-read"
119+ 'x-amz-meta-original-name' => $name,
120+ 'x-amz-acl' => "public-read"
121121 })
122122 or die "failed to upload $fn to $mainKey\n";
123123 $cache{$mainKey} = 1;