diff options
author | Arseniy Seroka <jagajaga@users.noreply.github.com> | 2015-02-19 23:42:01 +0300 |
---|---|---|
committer | Arseniy Seroka <jagajaga@users.noreply.github.com> | 2015-02-19 23:42:01 +0300 |
commit | f5ee15d694a73837114de21d0b1a669be68e2575 (patch) | |
tree | 0b16862d86ca0816644d046543bfeba8e9159fab /pkgs/servers | |
parent | 792eba5b42212822d2dd5b35c0e14daed4a4c10e (diff) | |
parent | a57ec23d55547799de5aa0c78be3add65ca90d8b (diff) | |
download | nixpkgs-f5ee15d694a73837114de21d0b1a669be68e2575.tar nixpkgs-f5ee15d694a73837114de21d0b1a669be68e2575.tar.gz nixpkgs-f5ee15d694a73837114de21d0b1a669be68e2575.tar.bz2 nixpkgs-f5ee15d694a73837114de21d0b1a669be68e2575.tar.lz nixpkgs-f5ee15d694a73837114de21d0b1a669be68e2575.tar.xz nixpkgs-f5ee15d694a73837114de21d0b1a669be68e2575.tar.zst nixpkgs-f5ee15d694a73837114de21d0b1a669be68e2575.zip |
Merge pull request #6453 from k0ral/prosody
prosody: added luaevent dependency
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/xmpp/prosody/default.nix | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/pkgs/servers/xmpp/prosody/default.nix b/pkgs/servers/xmpp/prosody/default.nix index abe0116ef90..67882b1a02a 100644 --- a/pkgs/servers/xmpp/prosody/default.nix +++ b/pkgs/servers/xmpp/prosody/default.nix @@ -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 ]; }; } |