Document meta.mainProgram

Issue #4498.
This commit is contained in:
Eelco Dolstra 2021-02-17 17:58:40 +01:00
parent 7bd9898d5c
commit 1b57825524

View file

@ -43,9 +43,10 @@ program specified by the app definition.
If *installable* evaluates to a derivation, it will try to execute the If *installable* evaluates to a derivation, it will try to execute the
program `<out>/bin/<name>`, where *out* is the primary output store program `<out>/bin/<name>`, where *out* is the primary output store
path of the derivation and *name* is the name part of the value of the path of the derivation and *name* is the `meta.mainProgram` attribute
`name` attribute of the derivation (e.g. if `name` is set to of the derivation if it exists, and otherwise the name part of the
`hello-1.10`, it will run `$out/bin/hello`). value of the `name` attribute of the derivation (e.g. if `name` is set
to `hello-1.10`, it will run `$out/bin/hello`).
# Flake output attributes # Flake output attributes