From 8dd2e28374b6b2f995d1c408b24ec9b838f62626 Mon Sep 17 00:00:00 2001 From: Michael Mercier Date: Wed, 16 May 2018 17:48:36 +0200 Subject: Explain fetchTarball timeout behavior in the doc --- doc/manual/expressions/builtins.xml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'doc/manual/expressions') diff --git a/doc/manual/expressions/builtins.xml b/doc/manual/expressions/builtins.xml index ac1fe7e2fa..7bc0d26672 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 { … } + + + The fetched tarball is cached for a certain amount of time + (1 hour by default) in ~/.cache/nix/tarballs/. + You can change the cache timeout either on the command line with + or + in the Nix configuration file with this option: + tarball-ttl number of seconds to cache. + - Note that when obtaining the hash with nix-prefetch-url + Note that when obtaining the hash with nix-prefetch-url the option --unpack is required. -- cgit 1.4.1