@@ -8,7 +8,7 @@
88{ fetchurl, fetchzip, stdenv, lua, callPackage, unzip, zziplib, pkgconfig, libtool
99, pcre, oniguruma, gnulib, tre, glibc, sqlite, openssl, expat, cairo
1010, perl, gtk2, python, glib, gobjectIntrospection, libevent, zlib, autoreconfHook
11−, libmysql, postgresql
11+, libmysql, postgresql, cyrus_sasl
1212, fetchFromGitHub, libmpack, which
1313}:
1414
@@ -106,6 +106,35 @@ let
106106 };
107107 };
108108
109+ luacyrussasl = buildLuaPackage rec {
110+ version = "1.1.0";
111+ name = "lua-cyrussasl-${version}";
112+ src = fetchFromGitHub {
113+ owner = "JorjBauer";
114+ repo = "lua-cyrussasl";
115+ rev = "v${version}";
116+ sha256 = "14kzm3vk96k2i1m9f5zvpvq4pnzaf7s91h5g4h4x2bq1mynzw2s1";
117+ };
118+
119+ preBuild = ''
120+ makeFlagsArray=(
121+ CFLAGS="-O2 -fPIC"
122+ LDFLAGS="-O -shared -fpic -lsasl2"
123+ LUAPATH="$out/share/lua/${lua.luaversion}"
124+ CPATH="$out/lib/lua/${lua.luaversion}"
125+ );
126+ mkdir -p $out/{share,lib}/lua/${lua.luaversion}
127+ '';
128+
129+ buildInputs = [ cyrus_sasl ];
130+
131+ meta = with stdenv.lib; {
132+ homepage = "https://github.com/JorjBauer/lua-cyrussasl";
133+ description = "Cyrus SASL library for Lua 5.1+";
134+ license = licenses.bsd3;
135+ };
136+ };
137+
109138 luaevent = buildLuaPackage rec {
110139 version = "0.4.3";
111140 name = "luaevent-${version}";
@@ -196,7 +225,6 @@ let
196225 meta = with stdenv.lib; {
197226 homepage = "https://code.google.com/archive/p/luadbi/";
198227 platforms = stdenv.lib.platforms.unix;
199− maintainers = with maintainers; [ sshishk ];
200228 };
201229 };
202230