nix3-formatter-build(1)
π 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. noresultlink for you, sorry bestie π--out-link/-opath β use path as the prefix for the symlinks to the build results. it defaults toresult.
π Common evaluation options π
--argname expr β pass the value expr as the argument name to Nix functions.--arg-from-filename path β pass the contents of file path as the argument name to Nix functions.--arg-from-stdinname β pass the contents of stdin as the argument name to Nix functions.--argstrname 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-storestore-url β the URL of the Nix store to use for evaluation, i.e. to store derivations (.drvfiles) and inputs referenced by them.--impureβ allow access to mutable paths and repositories. living dangerously, we love that for you π--include/-Ipath β 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-flakeoriginal-ref resolved-ref β override the flake registries, redirecting original-ref to resolved-ref. gaslight gatekeep girlboss π
π§ Common flake-related options π§
--commit-lock-fileβ commit changes to the flake's lock file. yes queen, save your work πΎ--inputs-fromflake-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-fileflake-lock-path β write the given lock file instead offlake.lockwithin the top-level flake.--override-inputinput-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-fileflake-lock-path β read the given lock file instead offlake.lockwithin the top-level flake.--update-inputinput-path β update a specific flake input (ignoring its previous entry in the lock file).
DEPRECATED π« β use nix flake update instead.
π’ Logging-related options π’
--debugβ set the logging verbosity level todebug. loud and proud π£οΈ--log-formatformat β set the format of log output; one ofraw,internal-json,barorbar-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.--optionname value β set the Nix configuration setting name to value (overridingnix.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 π
--exprexpr β interpret installables as attribute paths relative to the Nix expression expr.--file/-ffile β 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
- fedora 44: nix-core 2.35.3-2.fc44 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms