diff options
| author | zzbaron <[email protected]> | 2025-09-25 15:14:16 -0400 |
|---|---|---|
| committer | zzbaron <[email protected]> | 2025-09-25 15:14:16 -0400 |
| commit | 7176e111216c3a79fc292bb9116562b24eb99e91 (patch) | |
| tree | b88b9751604aa858f2b2d8dedfd456f42080fcba | |
| parent | 5381e13db135b332308f51302c71361ac2713a77 (diff) | |
nix: removed fuzzy name matching
| -rw-r--r-- | xmake/modules/package/manager/nix/find_package.lua | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/xmake/modules/package/manager/nix/find_package.lua b/xmake/modules/package/manager/nix/find_package.lua index c25f57e67..fe777c7d7 100644 --- a/xmake/modules/package/manager/nix/find_package.lua +++ b/xmake/modules/package/manager/nix/find_package.lua @@ -964,21 +964,10 @@ function main(name, opt) return nil end - -- Try to find the package by exact name match first + -- Try to find the package by name match first local name_lower = name:lower() local found_package = packages[name_lower] - -- If not found by exact match, try partial matches - if not found_package then - for pkg_name, pkg_info in pairs(packages) do - if pkg_name:find(name_lower, 1, true) or - name_lower:find(pkg_name, 1, true) then - found_package = pkg_info - break - end - end - end - -- Try pkg-config if package found in store paths local pkgconfig_result = nil if found_package then |
