nix3-derivation-add(1)
β¨ nix3-derivation-add(1) β¨
okay bestie, first things first: this one lives in the General Commands Manual, and it's called nix derivation add. Yes, the hyphenated cutie name up top is just the man page's own name β the actual thing you type is below. π
Warning π This program is experimental and its interface is subject to change. Like, it might get a glow-up and you'd never know. Proceed with the awareness of someone reading patch notes.
πΈ Name
nix derivation add β add a store derivation. that's it, that's the whole job, and she does it well. π
π¦ Synopsis
nix derivation add [optionβ¦]
π Description
kay so here's the tea: this command reads from standard input a JSON representation of a store derivation. Not a file, not an argument β stdin. so pipe it in or type it in, your call, queen. π«Ά
Store derivations are used internally by Nix. They're store paths with the extension .drv that represent the build-time dependency graph to which a Nix expression evaluates. lowkey the whole personality of a build, in a little file. π
nix derivation add takes a single derivation in the JSON format. one. singular. not a collection, not a whole vibe β one. See the manual for a documentation of this format. iykyk. π
β OPTIONS β
--dry-runβ Show what this command would do without doing it. it's giving window shopping, bestie. you get the fantasy, not the receipt. π
π§ Logging-related options
like, how much do you wanna hear about what's happening rn
--debugβ Set the logging verbosity level todebug. so loud, so detailed, so nosey. π--log-formatformat β Set the format of log output; one ofraw,internal-json,barorbar-with-logs. pick your aesthetic, there's genuinely a style for every mood. π--print-build-logs,-Lβ Print full build logs on standard error. all of it. the whole saga. on stderr specifically, don't get it twisted. π--quietβ Decrease the logging verbosity level. shhh. π€«--verbose,-vβ Increase the logging verbosity level. tell me EVERYTHING. π£οΈ
π Miscellaneous global options
the universal faves, they go everywhere with us
--helpβ Show usage information. when in doubt, ask her. πβοΈ--offlineβ Disable substituters and consider all previously downloaded files up-to-date. airplane mode but make it Nix. βοΈ--optionname value β Set the Nix configuration setting name to value (overridingnix.conf). mid-flight glow-up for your config. β¨--refreshβ Consider all previously downloaded files out-of-date. the opposite of--offline's whole thing β no cap, they're two different directions of the same energy. π₯--versionβ Show version information. cute little flex. π
Note π See man nix.conf for overriding configuration settings with command line flags.
that's the whole page, bestie β every flag, every format, every vibe, nothing skipped, nothing invented. π«Ά
this was nix3-derivation-add(1), living in the General Commands Manual. no version or date printed down there for me to gush about, just the page name itself, so β consider it signed, sealed, and slayed. go add a derivation, you iconic main character. πβ¨π
π¦ 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