aboutsummaryrefslogtreecommitdiff
path: root/src/nix/search.cc
diff options
context:
space:
mode:
authordramforever <dramforever@live.com>2023-01-23 23:07:34 +0800
committerdramforever <dramforever@live.com>2023-01-31 00:04:05 +0800
commit6b779e4b07c42e5780feda5daf6dedc6c49e50d7 (patch)
tree1a2ba97205ff76e1abeec076b2cb90fedd73cf85 /src/nix/search.cc
parent377d5eb38815d8290ab444c81c7826f46ba79844 (diff)
Fix extra "." in CmdSearch::getDefaultFlakeAttrPaths
No other getDefaultFlakeAttrPaths implementation has this trailing dot, and the dot can show up in error messages like: error: flake '...' does not provide attribute 'packages.x86_64-linux.', ...
Diffstat (limited to 'src/nix/search.cc')
-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()
};
}