1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 10:41:16 +02:00

Expand manual on derivation outputs

Note, this includes some text adapted from from Eelco's dissertation
This commit is contained in:
John Ericson 2025-02-10 01:08:00 -05:00
parent 31923aaac0
commit 2aa6e0f084
12 changed files with 508 additions and 174 deletions

View file

@ -1595,7 +1595,7 @@ static RegisterPrimOp primop_placeholder({
.args = {"output"},
.doc = R"(
Return at
[output placeholder string](@docroot@/store/drv.md#output-placeholder)
[output placeholder string](@docroot@/store/derivation/index.md#output-placeholder)
for the specified *output* that will be substituted by the corresponding
[output path](@docroot@/glossary.md#gloss-output-path)
at build time.
@ -2139,7 +2139,7 @@ static RegisterPrimOp primop_outputOf({
.args = {"derivation-reference", "output-name"},
.doc = R"(
Return the output path of a derivation, literally or using an
[input placeholder string](@docroot@/store/drv.md#input-placeholder)
[input placeholder string](@docroot@/store/derivation/index.md#input-placeholder)
if needed.
If the derivation has a statically-known output path (i.e. the derivation output is input-addressed, or fixed content-addresed), the output path will just be returned.