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:
parent
eb4788954d
commit
037c86ee04
2 changed files with 16 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue