forked from lix-project/lix
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) {
|
||||
if (hasPrefix(s, "nixpkgs.")) {
|
||||
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,
|
||||
FlakeRef::fromAttrs({{"type", "indirect"}, {"id", "nixpkgs"}}),
|
||||
Strings{"legacyPackages." + settings.thisSystem.get() + "." + std::string(s, 8)}, Strings{}));
|
||||
|
|
Loading…
Reference in a new issue