diff options
author | figsoda <figsoda@pm.me> | 2021-10-27 14:18:30 -0400 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2021-10-27 14:49:24 -0400 |
commit | a2473823d748b0249804d393c739622146954d02 (patch) | |
tree | 6bc3eb09776c4be3ac8d4b887afd7beeda9259d2 /src/nix/run.md | |
parent | 5a160171d05c4bde95a7ae75c133912e08186a12 (diff) |
run: use pname as a fallback for main program
Diffstat (limited to 'src/nix/run.md')
-rw-r--r-- | src/nix/run.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nix/run.md b/src/nix/run.md index a76750376..697db9a96 100644 --- a/src/nix/run.md +++ b/src/nix/run.md @@ -44,9 +44,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 `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`). +of the derivation if it exists, and otherwise the `pname` attribute of +the derivation or 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 |