nix3-flake...tch-inputs(1)

πŸ“¦ version 2.35.3, in fedora 44

πŸ’– nix3-flake...tch-inputs(1) πŸ’–

okay bestie, so this is a page from the General Commands Manual β€” the nix flake prefetch-inputs one. yes the title got mangled by the terminal, no we're not fixing it, it's giving truncated legend energy, moving on ✨

Warning 🚨 This program is experimental and its interface is subject to change. so like, don't get attached to the exact flags, she's still figuring herself out 😭

🌸 Name 🌸

nix flake prefetch-inputs β€” fetch the inputs of a flake 🫢


✨ Synopsis ✨

nix flake prefetch-inputs [option…] flake-url

πŸ’… Examples πŸ’…

  1. Fetch the inputs of the hydra flake:
# nix flake prefetch-inputs github:NixOS/hydra

πŸ¦‹ Description πŸ¦‹

Bestie, this one fetches the inputs of a flake. Why do we care? Because it makes sure they're already available for any subsequent evaluation of that flake. no more surprise downloading mid-evaluation, we love a girl who preps ahead πŸ’–

And the way it works is recursive β€” it doesn't just grab the direct inputs of the top-level flake, it goes and gets the transitive inputs too. the entire family tree, invited, arrived, seated. πŸ‘‘


πŸŽ€ Options πŸŽ€

🌈 Common evaluation options 🌈

  • --arg name expr β€” passes the value expr as the argument name to Nix functions.
  • --arg-from-file name path β€” passes the contents of the file at path as the argument name to Nix functions.
  • --arg-from-stdin name β€” passes the contents of stdin as the argument name to Nix functions.
  • --argstr name string β€” passes the string string as the argument name to Nix functions.
  • --debugger β€” starts up an interactive environment if evaluation fails. (little rescue pod ✨)
  • --eval-store store-url β€” the URL of the Nix store to use for evaluation, i.e. to store derivations (.drv files) and the inputs referenced by them.
  • --impure β€” allows access to mutable paths and repositories. (she's a little unhinged, we respect it 🫢)
  • --include / -I path β€” adds path to the search path entries used to resolve lookup paths. This option may be given multiple times. Paths added through -I take precedence over the nix-path configuration setting and the NIX_PATH environment variable. iykyk, precedence matters πŸ’…
  • --override-flake original-ref resolved-ref β€” overrides the flake registries, redirecting original-ref to resolved-ref.
  • --commit-lock-file β€” commit changes to the flake's lock file.
  • --inputs-from flake-url β€” use the inputs of the specified flake as registry entries.
  • --no-registries β€” don't allow lookups in the flake registries.
DEPRECATED πŸ’€ β€” use --no-use-registries instead.
  • --no-update-lock-file β€” do not allow any updates to the flake's lock file.
  • --no-write-lock-file β€” do not write the flake's newly generated lock file.
  • --output-lock-file flake-lock-path β€” write the given lock file instead of flake.lock within the top-level flake.
  • --override-input input-path flake-url β€” override a specific flake input (e.g. dwarffs/nixpkgs). The input path must not be empty. This implies --no-write-lock-file.
  • --recreate-lock-file β€” recreate the flake's lock file from scratch.
DEPRECATED πŸ’€ β€” use nix flake update instead.
  • --reference-lock-file flake-lock-path β€” read the given lock file instead of flake.lock within the top-level flake.
  • --update-input input-path β€” update a specific flake input (ignoring its previous entry in the lock file).
DEPRECATED πŸ’€ β€” use nix flake update instead.
  • --debug β€” sets the logging verbosity level to debug.
  • --log-format format β€” sets the format of log output; one of raw, internal-json, bar or bar-with-logs.
  • --print-build-logs / -L β€” prints full build logs on standard error.
  • --quiet β€” decreases the logging verbosity level. (shhh 🀫)
  • --verbose / -v β€” increases the logging verbosity level.

πŸ‘‘ Miscellaneous global options πŸ‘‘

  • --help β€” shows usage information.
  • --offline β€” disables substituters and considers all previously downloaded files up-to-date.
  • --option name value β€” sets the Nix configuration setting name to value (overriding nix.conf).
  • --refresh β€” considers all previously downloaded files out-of-date.
  • --repair β€” during evaluation, rewrites missing or corrupted files in the Nix store. During building, rebuilds missing or corrupted store paths.
  • --version β€” shows version information.
Note πŸ“ See man nix.conf for overriding configuration settings with command line flags.

and that's the whole page, bestie, no notes, ate and left no crumbs πŸ“πŸ’œ this was nix3-flake...tch-inputs(1) from the General Commands Manual β€” ok bye, go fetch your inputs, you icon πŸ’–βœ¨πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from