diff options
author | Cody Hiar <thornycrackers@users.noreply.github.com> | 2022-08-02 10:52:08 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-02 10:52:08 -0600 |
commit | 0e91d53cc541bc4676e993f4d841cab1457402f9 (patch) | |
tree | ac54e6c74a2bf40f162ea21af076bd290f2f7151 /doc/builders | |
parent | 0685e4a92984b7831a4256cc7e5463668f20e45c (diff) |
Update doc/builders/fetchers.chapter.md
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
Diffstat (limited to 'doc/builders')
-rw-r--r-- | doc/builders/fetchers.chapter.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/builders/fetchers.chapter.md b/doc/builders/fetchers.chapter.md index 26b70b1fde2b..3d89410f9723 100644 --- a/doc/builders/fetchers.chapter.md +++ b/doc/builders/fetchers.chapter.md @@ -5,7 +5,11 @@ Building software with Nix often requires downloading source code and other file ## Caveats -Fetchers create [_fixed output derivations_](https://nixos.org/manual/nix/stable/#fixed-output-drvs) that downloaded files. Later, Nix can reuse the downloaded files via their hash. While the caching improves performance, it can lead to some confusion. For example, consider the following fetcher: +Fetchers create [fixed output derivations](https://nixos.org/manual/nix/stable/#fixed-output-drvs) from downloaded files. +Nix can reuse the downloaded files via the hash of the resulting derivation. + +The fact that the hash belongs to the Nix derivation output and not the file itself can lead to confusion. +For example, consider the following fetcher: ```nix fetchurl { |