diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-06-17 16:58:59 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-06-17 16:58:59 +0200 |
commit | 2467c9837500b26aab5c1dcd3cac12cda44898ca (patch) | |
tree | ae23c6c4489121e1333f12710403b7c0a8c75dbf /src/nix/run.cc | |
parent | d6c4fe55db57c46aa113dc2f88e60b4a5e55ccf9 (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.cc | 5 |
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(); |