aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMichael Mercier <mickours@libr.fr>2018-05-16 17:48:36 +0200
committerGraham Christensen <graham@grahamc.com>2018-05-30 08:02:46 -0400
commit8dd2e28374b6b2f995d1c408b24ec9b838f62626 (patch)
tree2afccc1f99f83cb77adc4b55a4a2c38b56238c9a /doc
parent966407bcf1cf86de508b20fef43cffb81d8a87dc (diff)
Explain fetchTarball timeout behavior in the doc
Diffstat (limited to 'doc')
-rw-r--r--doc/manual/expressions/builtins.xml11
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/manual/expressions/builtins.xml b/doc/manual/expressions/builtins.xml
index ac1fe7e2f..7bc0d2667 100644
--- a/doc/manual/expressions/builtins.xml
+++ b/doc/manual/expressions/builtins.xml
@@ -280,8 +280,17 @@ with import (fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixo
stdenv.mkDerivation { … }
</programlisting>
+ </para>
+
+ <para>The fetched tarball is cached for a certain amount of time
+ (1 hour by default) in <filename>~/.cache/nix/tarballs/</filename>.
+ You can change the cache timeout either on the command line with
+ <option>--option tarball-ttl <replaceable>number of seconds</replaceable></option> or
+ in the Nix configuration file with this option:
+ <literal>tarball-ttl <replaceable>number of seconds to cache</replaceable></literal>.
+ </para>
- Note that when obtaining the hash with <varname>nix-prefetch-url
+ <para>Note that when obtaining the hash with <varname>nix-prefetch-url
</varname> the option <varname>--unpack</varname> is required.
</para>