NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.27k stars 1.48k forks source link

"Alternate FOD" for fixed output derivation that fails, mirror-like behavior #10986

Open roberth opened 3 months ago

roberth commented 3 months ago

Is your feature request related to a problem? Please describe.

Sometimes a fixed output derivation doesn't work. For example, a site may have gone offline. However, the same content may be available in a different location, such as a mirror, web archive, or a peer to peer content addressable store such as IPFS. Currently, only traditional mirrors lists can be used in anticipation of such failures.

Describe the solutions you'd like

"Inductive":

"Algebraic":

Comparison

It feels more natural to have metadata to be specified in the latter "algebraic" design, although nothing stops us from doing it with the inductive syntax. Uses of metadata:

Additional context

Priorities

Add :+1: to issues you find important.