summary refs log tree commit diff
path: root/pkgs/top-level/lua-packages.nix
diff options
context:
space:
mode:
authorSatoshi Shishiku <satoshi.shishiku@tuta.io>2017-03-01 00:57:02 +0000
committerFlorian Jacob <projects+git@florianjacob.de>2017-11-01 13:37:59 +0100
commitdcd9969f5bf9aaf8a65b2775725812f59d3f240c (patch)
tree52772f986d1f1bb1f03c358ca060cd12950fe537 /pkgs/top-level/lua-packages.nix
parent2e55e164eba6047942942eb0e099637626396524 (diff)
downloadnixlib-dcd9969f5bf9aaf8a65b2775725812f59d3f240c.tar
nixlib-dcd9969f5bf9aaf8a65b2775725812f59d3f240c.tar.gz
nixlib-dcd9969f5bf9aaf8a65b2775725812f59d3f240c.tar.bz2
nixlib-dcd9969f5bf9aaf8a65b2775725812f59d3f240c.tar.lz
nixlib-dcd9969f5bf9aaf8a65b2775725812f59d3f240c.tar.xz
nixlib-dcd9969f5bf9aaf8a65b2775725812f59d3f240c.tar.zst
nixlib-dcd9969f5bf9aaf8a65b2775725812f59d3f240c.zip
luacyrussasl: init at 1.1.0
Diffstat (limited to 'pkgs/top-level/lua-packages.nix')
-rw-r--r--pkgs/top-level/lua-packages.nix32
1 files changed, 30 insertions, 2 deletions
diff --git a/pkgs/top-level/lua-packages.nix b/pkgs/top-level/lua-packages.nix
index 753d03b020c3..1f70e99c0108 100644
--- a/pkgs/top-level/lua-packages.nix
+++ b/pkgs/top-level/lua-packages.nix
@@ -8,7 +8,7 @@
 { fetchurl, fetchzip, stdenv, lua, callPackage, unzip, zziplib, pkgconfig, libtool
 , pcre, oniguruma, gnulib, tre, glibc, sqlite, openssl, expat, cairo
 , perl, gtk2, python, glib, gobjectIntrospection, libevent, zlib, autoreconfHook
-, libmysql, postgresql
+, libmysql, postgresql, cyrus_sasl
 , fetchFromGitHub, libmpack, which
 }:
 
@@ -106,6 +106,35 @@ let
     };
   };
 
+  luacyrussasl = buildLuaPackage rec {
+    version = "1.1.0";
+    name = "lua-cyrussasl-${version}";
+    src = fetchFromGitHub {
+      owner = "JorjBauer";
+      repo = "lua-cyrussasl";
+      rev = "v${version}";
+      sha256 = "14kzm3vk96k2i1m9f5zvpvq4pnzaf7s91h5g4h4x2bq1mynzw2s1";
+    };
+
+    preBuild = ''
+      makeFlagsArray=(
+        CFLAGS="-O2 -fPIC"
+        LDFLAGS="-O -shared -fpic -lsasl2"
+        LUAPATH="$out/share/lua/${lua.luaversion}"
+        CPATH="$out/lib/lua/${lua.luaversion}"
+      );
+      mkdir -p $out/{share,lib}/lua/${lua.luaversion}
+    '';
+
+    buildInputs = [ cyrus_sasl ];
+
+    meta = with stdenv.lib; {
+      homepage = "https://github.com/JorjBauer/lua-cyrussasl";
+      description = "Cyrus SASL library for Lua 5.1+";
+      license = licenses.bsd3;
+    };
+  };
+
   luaevent = buildLuaPackage rec {
     version = "0.4.3";
     name = "luaevent-${version}";
@@ -196,7 +225,6 @@ let
     meta = with stdenv.lib; {
       homepage = "https://code.google.com/archive/p/luadbi/";
       platforms = stdenv.lib.platforms.unix;
-      maintainers = with maintainers; [ sshishk ];
     };
   };