Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1diff --git a/matrix.lua b/matrix.lua 2index b79f500..32b37a2 100644 3--- a/matrix.lua 4+++ b/matrix.lua 5@@ -43,6 +43,9 @@ This script maps this as follows: 6 7 ]] 8 9+package.cpath = package.cpath .. ";__NIX_LIB_PATH__" 10+package.path = package.path .. ";__NIX_OLM_PATH__" 11+ 12 local json = require 'cjson' -- apt-get install lua-cjson 13 local olmstatus, olm = pcall(require, 'olm') -- LuaJIT olm FFI binding ln -s ~/olm/olm.lua /usr/local/share/lua/5.1 14 local w = weechat 15diff --git a/olm.lua b/olm.lua 16index 114649c..4828371 100644 17--- a/olm.lua 18+++ b/olm.lua 19@@ -17,6 +17,9 @@ 20 * limitations under the License. 21 */ 22 --]] 23+ 24+package.cpath = package.cpath .. ";__NIX_LIB_PATH__" 25+ 26 local ffi = require'ffi' 27 28 ffi.cdef[[