diff options
-rw-r--r-- | pkgs/servers/xmpp/prosody/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/servers/xmpp/prosody/default.nix b/pkgs/servers/xmpp/prosody/default.nix index c9cd09bb748d1..9b7ed2ac41d07 100644 --- a/pkgs/servers/xmpp/prosody/default.nix +++ b/pkgs/servers/xmpp/prosody/default.nix @@ -59,6 +59,10 @@ stdenv.mkDerivation rec { "--with-lua=${lua5}" ]; + postBuild = '' + make -C tools/migration + ''; + postInstall = '' ${concatMapStringsSep "\n" (module: '' cp -r $communityModules/mod_${module} $out/lib/prosody/modules/ @@ -70,6 +74,11 @@ stdenv.mkDerivation rec { --add-flags '--config "/etc/prosody/prosody.cfg.lua"' \ --prefix LUA_PATH ';' "$LUA_PATH" \ --prefix LUA_CPATH ';' "$LUA_CPATH" + + make -C tools/migration install + wrapProgram $out/bin/prosody-migrator \ + --prefix LUA_PATH ';' "$LUA_PATH" \ + --prefix LUA_CPATH ';' "$LUA_CPATH" ''; passthru = { |