aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavHau <hsngrmpf+github@gmail.com>2020-10-01 11:34:13 +0700
committerDavHau <hsngrmpf+github@gmail.com>2020-10-01 11:34:13 +0700
commitf3280004e2be3f7533190ddf71ee1ec7c0d7d60d (patch)
treeb9ef09560153d7b78d78c80adefd7b518eb0fa2e /src
parent924712eef1fe86d349635ba666d413632e62519c (diff)
add more examples to --help of `nix run`
Diffstat (limited to 'src')
-rw-r--r--src/nix/run.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nix/run.cc b/src/nix/run.cc
index cbaba9d90..e6584346e 100644
--- a/src/nix/run.cc
+++ b/src/nix/run.cc
@@ -167,6 +167,14 @@ struct CmdRun : InstallableCommand, RunCommon
"To run Blender:",
"nix run blender-bin"
},
+ Example{
+ "To run vim from nixpkgs:",
+ "nix run nixpkgs#vim"
+ },
+ Example{
+ "To run vim from nixpkgs with arguments:",
+ "nix run nixpkgs#vim -- --help"
+ },
};
}