From 561baacb9bca1b69952dfd2ee1b38011a8a1d4ce Mon Sep 17 00:00:00 2001 From: Fernando Rodrigues Date: Mon, 7 Apr 2025 19:56:31 +0000 Subject: [PATCH] fix: reduce the number of erroneous matches in nix-index (github #45) --- core/src/system.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/system.rs b/core/src/system.rs index 03247a0..62de4bc 100644 --- a/core/src/system.rs +++ b/core/src/system.rs @@ -125,7 +125,7 @@ pub fn get_packages( ); return None; } - let result = command_output(shell, &format!("nix-locate 'bin/{}'", executable)); + let result = command_output(shell, &format!("nix-locate --regex 'bin/{}$'", executable)); if result.is_empty() { return None; }