mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-30 09:36:15 +02:00
Fix nixpkgs.<attr> warning
This commit is contained in:
parent
50cf77cecd
commit
95468e3c1e
1 changed files with 1 additions and 1 deletions
|
@ -454,7 +454,7 @@ std::vector<std::shared_ptr<Installable>> SourceExprCommand::parseInstallables(
|
||||||
for (auto & s : ss) {
|
for (auto & s : ss) {
|
||||||
if (hasPrefix(s, "nixpkgs.")) {
|
if (hasPrefix(s, "nixpkgs.")) {
|
||||||
bool static warned;
|
bool static warned;
|
||||||
warnOnce(warned, "the syntax 'nixpkgs.<attr>' is deprecated; use 'nixpkgs:<attr>' instead");
|
warnOnce(warned, "the syntax 'nixpkgs.<attr>' is deprecated; use 'nixpkgs#<attr>' instead");
|
||||||
result.push_back(std::make_shared<InstallableFlake>(*this,
|
result.push_back(std::make_shared<InstallableFlake>(*this,
|
||||||
FlakeRef::fromAttrs({{"type", "indirect"}, {"id", "nixpkgs"}}),
|
FlakeRef::fromAttrs({{"type", "indirect"}, {"id", "nixpkgs"}}),
|
||||||
Strings{"legacyPackages." + settings.thisSystem.get() + "." + std::string(s, 8)}, Strings{}));
|
Strings{"legacyPackages." + settings.thisSystem.get() + "." + std::string(s, 8)}, Strings{}));
|
||||||
|
|
Loading…
Reference in a new issue