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

Merge pull request #12442 from NixOS/store-derivation-options

Expand manual on derivation outputs
This commit is contained in:
Robert Hensing 2025-03-03 23:11:51 +01:00 committed by GitHub
commit efbd4c1ebb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 552 additions and 190 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.