nix3-formatter-build(1)

πŸ“¦ version 2.35.3, in fedora 44

πŸ’– nix3-formatter-build(1) πŸ’–

okay bestie, welcome to the General Commands Manual page for nix formatter build. sit down, hydrate, let's go ✨

⚠️ Warning, babes β€” this program is experimental and its interface is subject to change. no cap. it might glow up and change its whole personality on you.

πŸŽ€ Name πŸŽ€

nix formatter build β€” build the current flake's formatter 🌸


πŸ¦‹ Synopsis πŸ¦‹

nix formatter build [option…]

✨ Description ✨

nix formatter build builds the formatter specified in the flake. that's it, that's the whole vibe πŸ’…

it's similar to nix build, except β€” unless you pass --no-link β€” after a successful build it creates a symlink to the store path of the formatter. that symlink is named ./result by default, lowkey iconic, and you can override that with the --out-link option.

and it always prints the command to standard output. always. every time. periodt. 🫢


πŸ”₯ Examples πŸ”₯

  • Build the formatter:
# nix formatter build
/nix/store/cb9w44vkhk2x4adfxwgdkkf5gjmm856j-treefmt/bin/treefmt

πŸ‘‘ Options πŸ‘‘

  • --no-link β€” do not create symlinks to the build results. no result link for you, sorry bestie πŸ™ˆ
  • --out-link / -o path β€” use path as the prefix for the symlinks to the build results. it defaults to result.

🌈 Common evaluation options 🌈

  • --arg name expr β€” pass the value expr as the argument name to Nix functions.
  • --arg-from-file name path β€” pass the contents of file path as the argument name to Nix functions.
  • --arg-from-stdin name β€” pass the contents of stdin as the argument name to Nix functions.
  • --argstr name string β€” pass the string string as the argument name to Nix functions.
  • --debugger β€” start an interactive environment if evaluation fails. it's giving "we can fix this together" energy πŸ₯Ί
  • --eval-store store-url β€” the URL of the Nix store to use for evaluation, i.e. to store derivations (.drv files) and inputs referenced by them.
  • --impure β€” allow access to mutable paths and repositories. living dangerously, we love that for you πŸ’€
  • --include / -I path β€” add path to 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. so like, -I is the main character here πŸ‘‘

  • --override-flake original-ref resolved-ref β€” override the flake registries, redirecting original-ref to resolved-ref. gaslight gatekeep girlboss πŸŽ€

  • --commit-lock-file β€” commit changes to the flake's lock file. yes queen, save your work πŸ’Ύ
  • --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. it's old news, we've moved on.
  • --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. sneaky little implication, ngl πŸ™ˆ
  • --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 β€” set the logging verbosity level to debug. loud and proud πŸ—£οΈ
  • --log-format format β€” set the format of log output; one of raw, internal-json, bar or bar-with-logs.
  • --print-build-logs / -L β€” print full build logs on standard error.
  • --quiet β€” decrease the logging verbosity level. shhh 🀫
  • --verbose / -v β€” increase the logging verbosity level. tell me EVERYTHING πŸ’œ

🌟 Miscellaneous global options 🌟

  • --help β€” show usage information.
  • --offline β€” disable substituters and consider all previously downloaded files up-to-date.
  • --option name value β€” set the Nix configuration setting name to value (overriding nix.conf).
  • --refresh β€” consider all previously downloaded files out-of-date.
  • --repair β€” during evaluation, rewrite missing or corrupted files in the Nix store. during building, rebuild missing or corrupted store paths.
  • --version β€” show version information.

πŸ“ Options that change the interpretation of installables πŸ“

  • --expr expr β€” interpret installables as attribute paths relative to the Nix expression expr.
  • --file / -f file β€” interpret installables as attribute paths relative to the Nix expression stored in file. if file is the character -, then a Nix expression is read from standard input. implies --impure.
πŸ“ Note β€” see man nix.conf for overriding configuration settings with command line flags.

okay that's the whole page bestie, you ate that πŸ“šβœ¨

πŸ’… sign-off, fr fr: that was nix3-formatter-build(1) straight out of the General Commands Manual. go build something cute. bye bestie, ily πŸ«ΆπŸŽ€
πŸ“¦ where this page comes from