Replace defaultBla.$system with bla.$system.default
This also simplifies some InstallableFlake logic and fixes 'nix bundle' parsing its installable twice. Fixes #5532.
This commit is contained in:
+8
-1
@@ -325,8 +325,15 @@ struct Common : InstallableCommand, MixProfile
|
||||
|
||||
Strings getDefaultFlakeAttrPaths() override
|
||||
{
|
||||
return {"devShell." + settings.thisSystem.get(), "defaultPackage." + settings.thisSystem.get()};
|
||||
Strings paths{
|
||||
"devShells." + settings.thisSystem.get() + ".default",
|
||||
"devShell." + settings.thisSystem.get(),
|
||||
};
|
||||
for (auto & p : SourceExprCommand::getDefaultFlakeAttrPaths())
|
||||
paths.push_back(p);
|
||||
return paths;
|
||||
}
|
||||
|
||||
Strings getDefaultFlakeAttrPathPrefixes() override
|
||||
{
|
||||
auto res = SourceExprCommand::getDefaultFlakeAttrPathPrefixes();
|
||||
|
||||
Reference in New Issue
Block a user