From d0118c9930f1f4fac7c9f75c3894b141566561ec Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 15 Nov 2022 00:19:16 +0530 Subject: gnu: prosody: Invoke prosody wrapper script directly. * gnu/packages/messaging.scm (prosody)[arguments]: Add invoke-prosody-wrapper phase. --- gnu/packages/messaging.scm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index db1c96f9dc..9927c7c323 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -1538,6 +1538,15 @@ Qt-based XMPP library QXmpp.") (("^INSTALLEDCONFIG =.*") "INSTALLEDCONFIG = /etc/prosody\n") ;; prosodyctl needs a place to put auto-generated certificates. (("^INSTALLEDDATA =.*") "INSTALLEDDATA = /var/lib/prosody\n")))) + (add-after 'unpack 'invoke-prosody-wrapper + (lambda* (#:key inputs outputs #:allow-other-keys) + ;; Invoke the prosody wrapper script instead of invoking lua on + ;; the actual executable. + (substitute* "util/prosodyctl.lua" + (("os.execute\\(lua[^;]*") + (string-append "os.execute(\"" + (assoc-ref outputs "out") + "/bin/prosody -D\")"))))) (add-after 'install 'wrap-programs (lambda* (#:key inputs outputs #:allow-other-keys) ;; Make sure all executables in "bin" find the required Lua -- cgit v1.2.3