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. πŸ™ˆ

like, how much do you wanna hear about what's happening rn

  • --debug β€” Set the logging verbosity level to debug. so loud, so detailed, so nosey. πŸ‘‘
  • --log-format format β€” Set the format of log output; one of raw, internal-json, bar or bar-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. ✈️
  • --option name value β€” Set the Nix configuration setting name to value (overriding nix.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