0
0
Fork 0
forked from lix-project/lix

Merge pull request from aneeshusa/remove-wrong-default-value-in-docs-for-hashed-mirrors

Remove old default from docs for `hashed-mirrors`
This commit is contained in:
Eelco Dolstra 2023-06-06 12:54:28 +02:00 committed by GitHub
commit b56319a139
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -896,12 +896,11 @@ public:
this, {}, "hashed-mirrors",
R"(
A list of web servers used by `builtins.fetchurl` to obtain files by
hash. The default is `http://tarballs.nixos.org/`. Given a hash type
*ht* and a base-16 hash *h*, Nix will try to download the file from
*hashed-mirror*/*ht*/*h*. This allows files to be downloaded even if
they have disappeared from their original URI. For example, given
the default mirror `http://tarballs.nixos.org/`, when building the
derivation
hash. Given a hash type *ht* and a base-16 hash *h*, Nix will try to
download the file from *hashed-mirror*/*ht*/*h*. This allows files to
be downloaded even if they have disappeared from their original URI.
For example, given an example mirror `http://tarballs.nixos.org/`,
when building the derivation
```nix
builtins.fetchurl {