aboutsummaryrefslogtreecommitdiff
path: root/src/nix/run.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-06-17 16:58:59 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-06-17 16:58:59 +0200
commit2467c9837500b26aab5c1dcd3cac12cda44898ca (patch)
treeae23c6c4489121e1333f12710403b7c0a8c75dbf /src/nix/run.cc
parentd6c4fe55db57c46aa113dc2f88e60b4a5e55ccf9 (diff)
nix app: Search for installable in the 'apps' output
I.e. you can write $ nix app blender-bin:blender_2_80 which is equivalent to $ nix app blender-bin:apps.blender_2_80
Diffstat (limited to 'src/nix/run.cc')
-rw-r--r--src/nix/run.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nix/run.cc b/src/nix/run.cc
index 00a682832..62aae12f6 100644
--- a/src/nix/run.cc
+++ b/src/nix/run.cc
@@ -225,6 +225,11 @@ struct CmdApp : InstallableCommand, RunCommon
return {"defaultApp"};
}
+ Strings getDefaultFlakeAttrPathPrefixes() override
+ {
+ return {"apps."};
+ }
+
void run(ref<Store> store) override
{
auto state = getEvalState();