1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-17 07:52:43 +01:00

nix develop: Search in devShells.${system} by default

Make `nix develop .#foo` search `.#devShells.${system}.foo` first
This commit is contained in:
regnat 2021-07-13 11:44:19 +02:00
parent eb4788954d
commit 037c86ee04
2 changed files with 16 additions and 1 deletions

View file

@ -326,6 +326,12 @@ struct Common : InstallableCommand, MixProfile
{
return {"devShell." + settings.thisSystem.get(), "defaultPackage." + settings.thisSystem.get()};
}
Strings getDefaultFlakeAttrPathPrefixes() override
{
auto res = SourceExprCommand::getDefaultFlakeAttrPathPrefixes();
res.emplace_front("devShells." + settings.thisSystem.get());
return res;
}
StorePath getShellOutPath(ref<Store> store)
{