diff options
author | Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com> | 2022-06-29 17:59:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-29 17:59:22 +0200 |
commit | 4c8210095e7ed8de2eb4789b0ac6f9b4a39e394e (patch) | |
tree | 7a3907b09fb3cefd4b733365867b3f337d003170 /src/libcmd/installables.cc | |
parent | 3b18058969c57961ec6c7496020cce48bfb64edc (diff) | |
parent | f801d70ba70c130a26747aa5b60d233f37d34bfa (diff) |
Merge pull request #6233 from flox/nix-repl-flakes
Nix repl flakes
Diffstat (limited to 'src/libcmd/installables.cc')
-rw-r--r-- | src/libcmd/installables.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libcmd/installables.cc b/src/libcmd/installables.cc index ffc25135e..03c8f82b3 100644 --- a/src/libcmd/installables.cc +++ b/src/libcmd/installables.cc @@ -1036,11 +1036,16 @@ InstallablesCommand::InstallablesCommand() void InstallablesCommand::prepare() { + installables = load(); +} + +Installables InstallablesCommand::load() { + Installables installables; if (_installables.empty() && useDefaultInstallables()) // FIXME: commands like "nix profile install" should not have a // default, probably. _installables.push_back("."); - installables = parseInstallables(getStore(), _installables); + return parseInstallables(getStore(), _installables); } std::optional<FlakeRef> InstallablesCommand::getFlakeRefForCompletion() |