File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
xmake/modules/package/manager/nix Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,6 @@ function _get_shell_build_inputs()
85
85
return all_paths
86
86
end
87
87
88
-
89
88
-- Environment variables to check for nix store paths
90
89
local env_vars = {
91
90
" PATH" ,
@@ -196,7 +195,7 @@ function _validate_package_in_store_path(store_path, name)
196
195
197
196
-- Look for exact match, or package name in the store path
198
197
local name_match = store_name :find (search_name , 1 , true ) or
199
- store_name :find (search_name :gsub (" %-" , " %%-" )) -- handle hyphens
198
+ store_name :find (( search_name :gsub (" %-" , " %%-" ) )) -- handle hyphens
200
199
201
200
if name_match then
202
201
return true
@@ -268,7 +267,7 @@ function _find_in_store_path(store_path, name)
268
267
filename :match (" ^lib(.+)%.dylib" )
269
268
270
269
if linkname then
271
- if linkname == name or linkname :find (name ) then
270
+ if linkname == name or linkname :find (name , 1 , true ) then
272
271
table.insert (result .links , linkname )
273
272
table.insert (result .libfiles , libfile )
274
273
end
You can’t perform that action at this time.
0 commit comments