aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/globals.hh
diff options
context:
space:
mode:
authorAneesh Agrawal <aneeshusa@gmail.com>2023-05-24 11:05:40 -0400
committerAneesh Agrawal <aneeshusa@gmail.com>2023-05-24 11:05:40 -0400
commitc694f1a2f3773664b08e561c3fe75b5fe97df51f (patch)
tree81b7245a0a65bbdf4eb8ae5270fa49706d75b1fe /src/libstore/globals.hh
parent6e4570234d5ac63a9483fb7f7aabaa1d17561a3a (diff)
Remove old default from docs for `hashed-mirrors`
The `hashed-mirrors` option did use to have this default value, but it was removed and re-added with an empty default value. As the autogenerated docs show the (actual) default values from code, remove this incorrect reference from the docs. I was updating my nix.conf settings after a few years and noticed this.
Diffstat (limited to 'src/libstore/globals.hh')
-rw-r--r--src/libstore/globals.hh11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh
index 31dfe5b4e..6d8a0af32 100644
--- a/src/libstore/globals.hh
+++ b/src/libstore/globals.hh
@@ -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 {