diff options
author | Félix Baylac-Jacqué <felix@alternativebit.fr> | 2022-04-22 11:27:51 +0200 |
---|---|---|
committer | Félix Baylac-Jacqué <felix@alternativebit.fr> | 2022-05-02 12:43:19 +0200 |
commit | 20693a1e733dca4cd7e3001d7d7f60bd7237b301 (patch) | |
tree | 14d5128d73e0a2efec3fdca6fdf47086d91586a4 /pkgs/servers/xmpp | |
parent | 0e630462da8c2e83b6d04eb935353d1e34549c32 (diff) |
prosody: 0.11.13 -> 0.12.0
See https://blog.prosody.im/prosody-0.12.0-released for more informations. We remove the various lua wrappers introduced by 6799a9184336146467eb71298d6b18ba7f45e0dc and 16d0b4a69f94adb523da8732b231b0d1738bd713. It seems like we don't need them anymore. I'm not brave enough to dig into the Lua machinery to see what resolved that. Sorry, you'll have to trust me on that one. We should probably think about the migration from http_upload to http_file_share for the NixOS module. It's not trivial, we need to make sure we don't break the already uploaded URLs.
Diffstat (limited to 'pkgs/servers/xmpp')
-rw-r--r-- | pkgs/servers/xmpp/prosody/default.nix | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/pkgs/servers/xmpp/prosody/default.nix b/pkgs/servers/xmpp/prosody/default.nix index 6b70c4cc9874f..0d00e48f48ade 100644 --- a/pkgs/servers/xmpp/prosody/default.nix +++ b/pkgs/servers/xmpp/prosody/default.nix @@ -1,4 +1,5 @@ { stdenv, fetchurl, lib, libidn, openssl, makeWrapper, fetchhg +, icu , lua , nixosTests , withLibevent ? true @@ -13,7 +14,7 @@ with lib; let luaEnv = lua.withPackages(p: with p; [ - luasocket luasec luaexpat luafilesystem luabitop luadbi-sqlite3 + luasocket luasec luaexpat luafilesystem luabitop luadbi-sqlite3 luaunbound ] ++ lib.optional withLibevent p.luaevent ++ lib.optional withDBI p.luadbi @@ -21,21 +22,19 @@ let ); in stdenv.mkDerivation rec { - version = "0.11.13"; # also update communityModules + version = "0.12.0"; # also update communityModules pname = "prosody"; # The following community modules are necessary for the nixos module # prosody module to comply with XEP-0423 and provide a working # default setup. nixosModuleDeps = [ - "bookmarks" "cloud_notify" "vcard_muc" - "smacks" "http_upload" ]; src = fetchurl { url = "https://prosody.im/downloads/source/${pname}-${version}.tar.gz"; - sha256 = "sha256-OcYbNGoJtRJbYEy5aeFCBsu8uGyBFW/8a6LWJSfPBDI="; + sha256 = "sha256-dS/zIBXaxWX8NBfCGWryaJccNY7gZuUfXZEkE1gNiJo="; }; # A note to all those merging automated updates: Please also update this @@ -43,13 +42,13 @@ stdenv.mkDerivation rec { # version. communityModules = fetchhg { url = "https://hg.prosody.im/prosody-modules"; - rev = "54fa2116bbf3"; - sha256 = "sha256-OKZ7tD75q8/GMXruUQ+r9l0BxzdbPHNf41fZ3fHVQVw="; + rev = "65438e4ba563"; + sha256 = "sha256-zHOrMzcgHOdBl7nObM+OauifbcmKEOfAuj81MDSoLMk="; }; nativeBuildInputs = [ makeWrapper ]; buildInputs = [ - luaEnv libidn openssl + luaEnv libidn openssl icu ] ++ withExtraLibs; @@ -63,26 +62,14 @@ stdenv.mkDerivation rec { make -C tools/migration ''; - luaEnvPath = lua.pkgs.lib.genLuaPathAbsStr luaEnv; - luaEnvCPath = lua.pkgs.lib.genLuaCPathAbsStr luaEnv; - # the wrapping should go away once lua hook is fixed postInstall = '' ${concatMapStringsSep "\n" (module: '' cp -r $communityModules/mod_${module} $out/lib/prosody/modules/ '') (lib.lists.unique(nixosModuleDeps ++ withCommunityModules ++ withOnlyInstalledCommunityModules))} - wrapProgram $out/bin/prosody \ - --prefix LUA_PATH ';' "$luaEnvPath" \ - --prefix LUA_CPATH ';' "$luaEnvCPath" wrapProgram $out/bin/prosodyctl \ - --add-flags '--config "/etc/prosody/prosody.cfg.lua"' \ - --prefix LUA_PATH ';' "$luaEnvPath" \ - --prefix LUA_CPATH ';' "$luaEnvCPath" - + --add-flags '--config "/etc/prosody/prosody.cfg.lua"' make -C tools/migration install - wrapProgram $out/bin/prosody-migrator \ - --prefix LUA_PATH ';' "$luaEnvPath" \ - --prefix LUA_CPATH ';' "$luaEnvCPath" ''; passthru = { |