aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-06-13 14:07:25 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-06-13 14:07:25 +0200
commit415fc233e3f01a3bb3cfac01deb9f4ca4af7fb19 (patch)
tree9e8bfb2e6e67e558c57711be164f6331b2dd1277 /src
parent06010eaf199005a393f212023ec5e8bc97978537 (diff)
For nixpkgs.<attr>, use legacyPackages
This makes commands like 'nix run nixpkgs.chromium' work again.
Diffstat (limited to 'src')
-rw-r--r--src/nix/installables.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/installables.cc b/src/nix/installables.cc
index 86e601bc4..1c7debf4e 100644
--- a/src/nix/installables.cc
+++ b/src/nix/installables.cc
@@ -411,7 +411,7 @@ std::vector<std::shared_ptr<Installable>> SourceExprCommand::parseInstallables(
bool static warned;
warnOnce(warned, "the syntax 'nixpkgs.<attr>' is deprecated; use 'nixpkgs:<attr>' instead");
result.push_back(std::make_shared<InstallableFlake>(*this, FlakeRef("nixpkgs"),
- Strings{"packages." + std::string(s, 8)}));
+ Strings{"legacyPackages." + std::string(s, 8)}));
}
else if (auto flakeRef = parseFlakeRef(s, true))