NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.16k stars 14.18k forks source link

`fetchzip` calls aren't picked up by tarballs.nixos.org #185565

Open Olliroxx opened 2 years ago

Olliroxx commented 2 years ago

Issue description

This is the file that gets the list of tarballs to mirror on tarballs.nixos.org. On line 21, it filters out all packages which do not have the hash mode flat. In fetchzip it sets the recursiveHash option, which sets the hash mode to recursive, meaning anything that uses fetchzip (or others that use it, like fetchFromGitHub) isn't mirrored.

Potential solutions:

Ignore it Cons:

Pros:

Modify fetchzip to instead copy the result of a fetchurl call and unpack it (resulting in two derivations instead of one) Cons:

Pros:

Modify find-tarballs.nix to also cache directories Cons:

Pros:

veprbl commented 2 years ago

fetchFromGithub could grab sources from Software Heritage instead.