aboutsummaryrefslogtreecommitdiff
path: root/src/nix/installables.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-01-31 19:35:28 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-01-31 19:35:28 +0100
commit185c3c824015f03027b77b85221df32cdb16e759 (patch)
tree6d8d2a0faad6d1c40fbad291bf8365a5141aa8b1 /src/nix/installables.cc
parent8414685c0f0c0d744c70d438894e4ecd7a078808 (diff)
Cleanup
Diffstat (limited to 'src/nix/installables.cc')
-rw-r--r--src/nix/installables.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nix/installables.cc b/src/nix/installables.cc
index 77a43ef2a..cf91be51b 100644
--- a/src/nix/installables.cc
+++ b/src/nix/installables.cc
@@ -450,7 +450,8 @@ std::vector<std::shared_ptr<Installable>> SourceExprCommand::parseInstallables(
if (hasPrefix(s, "nixpkgs.")) {
bool static warned;
warnOnce(warned, "the syntax 'nixpkgs.<attr>' is deprecated; use 'nixpkgs:<attr>' instead");
- result.push_back(std::make_shared<InstallableFlake>(*this, parseFlakeRef("flake:nixpkgs"),
+ result.push_back(std::make_shared<InstallableFlake>(*this,
+ FlakeRef::fromAttrs({{"type", "indirect"}, {"id", "nixpkgs"}}),
Strings{"legacyPackages." + settings.thisSystem.get() + "." + std::string(s, 8)}, Strings{}));
}