nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

copy-tarballs.pl: skip files that are patches

+6
+6
maintainers/scripts/copy-tarballs.pl
··· 164 164 my $algo = $fetch->{type}; 165 165 my $hash = $fetch->{hash}; 166 166 my $name = $fetch->{name}; 167 + my $isPatch = $fetch->{isPatch}; 167 168 168 169 if ($hash =~ /^([a-z0-9]+)-([A-Za-z0-9+\/=]+)$/) { 169 170 $algo = $1; ··· 187 186 188 187 if ($url !~ /^http:/ && $url !~ /^https:/ && $url !~ /^ftp:/ && $url !~ /^mirror:/) { 189 188 print STDERR "skipping $url (unsupported scheme)\n"; 189 + next; 190 + } 191 + 192 + if ($isPatch) { 193 + print STDERR "skipping $url (support for patches is missing)\n"; 190 194 next; 191 195 } 192 196