diff options
Diffstat (limited to 'nixpkgs/doc/functions/prefer-remote-fetch.xml')
-rw-r--r-- | nixpkgs/doc/functions/prefer-remote-fetch.xml | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/nixpkgs/doc/functions/prefer-remote-fetch.xml b/nixpkgs/doc/functions/prefer-remote-fetch.xml index 85f08f4eae14..2ccad9218062 100644 --- a/nixpkgs/doc/functions/prefer-remote-fetch.xml +++ b/nixpkgs/doc/functions/prefer-remote-fetch.xml @@ -7,17 +7,15 @@ <para> <function>prefer-remote-fetch</function> is an overlay that download sources on remote builder. This is useful when the evaluating machine has a slow - upload while the builder can fetch faster directly from the source. - To use it, put the following snippet as a new overlay: - <programlisting> + upload while the builder can fetch faster directly from the source. To use + it, put the following snippet as a new overlay: +<programlisting> self: super: (super.prefer-remote-fetch self super) </programlisting> - - A full configuration example for that sets the overlay up for your own account, - could look like this - - <programlisting> + A full configuration example for that sets the overlay up for your own + account, could look like this +<programlisting> $ mkdir ~/.config/nixpkgs/overlays/ $ cat > ~/.config/nixpkgs/overlays/prefer-remote-fetch.nix <<EOF self: super: super.prefer-remote-fetch self super |