aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorThéophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>2023-02-01 15:56:22 +0100
committerGitHub <noreply@github.com>2023-02-01 15:56:22 +0100
commite32c5c2c777bc0ae0b49ab4d9761beaa03d20898 (patch)
tree7797e3b95e91b61eb51ae2f82be655ab539d3c3e /src/nix
parent6f0436a337b1a835f0ab6bba892d4f450e1217b0 (diff)
parent6b779e4b07c42e5780feda5daf6dedc6c49e50d7 (diff)
Merge pull request #7667 from dramforever/flake-search-attr
Better error message for nix search when attr is not found
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/search.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/search.cc b/src/nix/search.cc
index d2a31607d..4fa1e7837 100644
--- a/src/nix/search.cc
+++ b/src/nix/search.cc
@@ -56,8 +56,8 @@ struct CmdSearch : InstallableCommand, MixJSON
Strings getDefaultFlakeAttrPaths() override
{
return {
- "packages." + settings.thisSystem.get() + ".",
- "legacyPackages." + settings.thisSystem.get() + "."
+ "packages." + settings.thisSystem.get(),
+ "legacyPackages." + settings.thisSystem.get()
};
}