Home Explore Blog Models CI



nix

src/nix/flake-prefetch-inputs.md
cbe933176432d8b5246f38a4924a5eddffdc5c2e7d5872280000000300000186
R""(

# Examples

* Fetch the inputs of the `hydra` flake:

  ```console
  # nix flake prefetch-inputs github:NixOS/hydra
  ```

# Description

Fetch the inputs of a flake. This ensures that they are already available for any subsequent evaluation of the flake.

This operation is recursive: it will fetch not just the direct inputs of the top-level flake, but also transitive inputs.

)""

Chunks
a6eb8b4e (1st chunk of `src/nix/flake-prefetch-inputs.md`)
Title: nix flake prefetch-inputs: Fetching Flake Inputs
Summary
The `nix flake prefetch-inputs` command is used to fetch all inputs, including transitive ones, for a specified Nix flake. This action ensures that all necessary flake inputs are pre-downloaded and available for any subsequent evaluation of the flake, speeding up future operations.