prosody: added luaevent dependency.
This commit is contained in:
@@ -1,12 +1,16 @@
|
||||
{ stdenv, fetchurl, lua5, luasocket, luasec, luaexpat, luafilesystem, luabitop, libidn, openssl, makeWrapper, fetchhg }:
|
||||
{ stdenv, fetchurl, lua5, luasocket, luasec, luaexpat, luafilesystem, luabitop, luaevent ? null, libidn, openssl, makeWrapper, fetchhg, withLibevent ? false }:
|
||||
|
||||
assert withLibevent -> luaevent != null;
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
let
|
||||
libs = [ luasocket luasec luaexpat luafilesystem luabitop ];
|
||||
libs = [ luasocket luasec luaexpat luafilesystem luabitop ] ++ optional withLibevent luaevent;
|
||||
getPath = lib : type : "${lib}/lib/lua/${lua5.luaversion}/?.${type};${lib}/share/lua/${lua5.luaversion}/?.${type}";
|
||||
getLuaPath = lib : getPath lib "lua";
|
||||
getLuaCPath = lib : getPath lib "so";
|
||||
luaPath = stdenv.lib.concatStringsSep ";" (map getLuaPath libs);
|
||||
luaCPath = stdenv.lib.concatStringsSep ";" (map getLuaCPath libs);
|
||||
luaPath = concatStringsSep ";" (map getLuaPath libs);
|
||||
luaCPath = concatStringsSep ";" (map getLuaCPath libs);
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -23,7 +27,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0010x2rl9f9ihy2nwqan2jdlz25433srj2zna1xh10490mc28hij";
|
||||
};
|
||||
|
||||
buildInputs = [ lua5 luasocket luasec luaexpat luabitop libidn openssl makeWrapper ];
|
||||
buildInputs = [ lua5 luasocket luasec luaexpat luabitop libidn openssl makeWrapper ]
|
||||
++ optional withLibevent luaevent;
|
||||
|
||||
configureFlags = [
|
||||
"--ostype=linux"
|
||||
@@ -44,9 +49,9 @@ stdenv.mkDerivation rec {
|
||||
|
||||
meta = {
|
||||
description = "Open-source XMPP application server written in Lua";
|
||||
license = stdenv.lib.licenses.mit;
|
||||
license = licenses.mit;
|
||||
homepage = http://www.prosody.im;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = [ stdenv.lib.maintainers.flosse ];
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.flosse ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user