Skip to content

Commit 50092d6

Browse files
authored
Use HOMEBREW_PREFIX in defs.lua (#184)
1 parent b487fcc commit 50092d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/sqlite/defs.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ local clib = (function()
4848
end
4949

5050
if os.sysname == "Darwin" then
51-
return os.machine == "arm64" and "/opt/homebrew/opt/sqlite/lib/libsqlite3.dylib"
51+
local homebrew_prefix = luv.os_getenv "HOMEBREW_PREFIX" or "/opt/homebrew"
52+
return os.machine == "arm64" and homebrew_prefix .. "/opt/sqlite/lib/libsqlite3.dylib"
5253
or "/usr/local/opt/sqlite3/lib/libsqlite3.dylib"
5354
end
5455
end)()

0 commit comments

Comments
 (0)