forked from lix-project/lix
Fix "nixpkgs." compatibility
This commit is contained in:
parent
1e23b82a53
commit
91a88f3acb
|
@ -409,7 +409,7 @@ std::vector<std::shared_ptr<Installable>> SourceExprCommand::parseInstallables(
|
||||||
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, FlakeRef("nixpkgs"),
|
result.push_back(std::make_shared<InstallableFlake>(*this, FlakeRef("nixpkgs"),
|
||||||
Strings{"legacyPackages." + std::string(s, 8)}));
|
Strings{"legacyPackages." + settings.thisSystem.get() + "." + std::string(s, 8)}));
|
||||||
}
|
}
|
||||||
|
|
||||||
else if ((hash = s.rfind('#')) != std::string::npos)
|
else if ((hash = s.rfind('#')) != std::string::npos)
|
||||||
|
|
Loading…
Reference in a new issue