Skip to content

Commit

Permalink
Explain fetchTarball timeout behavior in the doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mickours authored and grahamc committed May 30, 2018
1 parent 966407b commit 8dd2e28
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion doc/manual/expressions/builtins.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down

0 comments on commit 8dd2e28

Please sign in to comment.