diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-01-31 19:35:28 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-01-31 19:35:28 +0100 |
commit | 185c3c824015f03027b77b85221df32cdb16e759 (patch) | |
tree | 6d8d2a0faad6d1c40fbad291bf8365a5141aa8b1 /src/nix | |
parent | 8414685c0f0c0d744c70d438894e4ecd7a078808 (diff) |
Cleanup
Diffstat (limited to 'src/nix')
-rw-r--r-- | src/nix/installables.cc | 3 |
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{})); } |