Skip to content

Commit

Permalink
Document meta.mainProgram
Browse files Browse the repository at this point in the history
Issue #4498.
  • Loading branch information
edolstra committed Feb 17, 2021
1 parent 7bd9898 commit 1b57825
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/nix/run.md
Expand Up @@ -43,9 +43,10 @@ program specified by the app definition.

If *installable* evaluates to a derivation, it will try to execute the
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
`name` attribute of the derivation (e.g. if `name` is set to
`hello-1.10`, it will run `$out/bin/hello`).
path of the derivation and *name* is the `meta.mainProgram` attribute
of the derivation if it exists, and otherwise the name part of the
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

Expand Down

0 comments on commit 1b57825

Please sign in to comment.