diff --git a/doc/manual/expressions/builtins.xml b/doc/manual/expressions/builtins.xml index 5489fab00..54f697d85 100644 --- a/doc/manual/expressions/builtins.xml +++ b/doc/manual/expressions/builtins.xml @@ -310,8 +310,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.