aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-02-17 17:58:40 +0100
committerEelco Dolstra <edolstra@gmail.com>2021-02-17 17:58:47 +0100
commit1b578255245e2e1347059ad7d9171cf822c723a8 (patch)
tree2e2cf8bc1405bc01a99e4457aaf060758302a058 /src/nix
parent7bd9898d5ca72ed136032590745c56826317a328 (diff)
Document meta.mainProgram
Issue #4498.
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/run.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nix/run.md b/src/nix/run.md
index c178e8b13..a76750376 100644
--- a/src/nix/run.md
+++ b/src/nix/run.md
@@ -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