From ac93a00745e81f9fe7d17481f69410fc66030ffe Mon Sep 17 00:00:00 2001 From: Robert Gerus Date: Mon, 24 May 2021 16:38:18 +0200 Subject: [PATCH] weechatScripts.weechat-matrix: fix matrix_sso_helper path server.py tries to launch a matrix_sso_helper binary when connecting to a homeserver that uses some SSO mechanism instead of plain login and password, but doesn't have $out/bin in $PATH. Using substituteInPlace to patch server.py so that the helper process is started by using its actual filesystem location instead of relying on $PATH. Fixes: https://github.com/NixOS/nixpkgs/issues/124186 (cherry picked from commit f7ccc5f35d0e1fe11a7e01e3dddd1ff28566ba1d) --- .../networking/irc/weechat/scripts/weechat-matrix/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/networking/irc/weechat/scripts/weechat-matrix/default.nix b/pkgs/applications/networking/irc/weechat/scripts/weechat-matrix/default.nix index c42fe55169e..c82fb9ca739 100644 --- a/pkgs/applications/networking/irc/weechat/scripts/weechat-matrix/default.nix +++ b/pkgs/applications/networking/irc/weechat/scripts/weechat-matrix/default.nix @@ -73,6 +73,7 @@ in buildPythonPackage { postFixup = '' addToSearchPath program_PYTHONPATH $out/${python.sitePackages} patchPythonScript $out/share/matrix.py + substituteInPlace $out/${python.sitePackages}/matrix/server.py --replace \"matrix_sso_helper\" \"$out/bin/matrix_sso_helper\" ''; meta = with lib; {