From 8dd2e28374b6b2f995d1c408b24ec9b838f62626 Mon Sep 17 00:00:00 2001 From: Michael Mercier Date: Wed, 16 May 2018 17:48:36 +0200 Subject: [PATCH] Explain fetchTarball timeout behavior in the doc --- doc/manual/expressions/builtins.xml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 { … } + - Note that when obtaining the hash with nix-prefetch-url + 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 the option --unpack is required.