diff options
| author | Nox <noximilien@riseup.net> | 2026-05-18 19:15:46 +0200 |
|---|---|---|
| committer | Nguyễn Gia Phong <cnx@loang.net> | 2026-06-07 22:38:56 +0900 |
| commit | c36471f48940e4ac13f32dde3b307b810772d417 (patch) | |
| tree | 710f8fb8529849b8a8fc0dc1760f3704a7f70f3e /gnu/packages/messaging.scm | |
| parent | 773933ede3d61e606b0d611ffac4aba0dc735a8d (diff) | |
gnu: prosody: Update to 13.0.6.
* gnu/packages/messaging.scm (prosody): Update to 13.0.6.
[arguments]: Use gexp. <#:phases>{fix-configure-script}: Remove phase.
{configure}: Replace with a custom invocation.
[inputs]: Bump to Lua 5.4. Add coreutils and lua5.4-unbound.
Change-Id: Iec2b7bb1c440af2e49eb3e38d08cf30d94825e09
Merges: https://codeberg.org/guix/guix/pulls/8711
Reviewed-by: Carlo Zancanaro <carlo@zancanaro.id.au>
Signed-off-by: Nguyễn Gia Phong <cnx@loang.net>
Diffstat (limited to 'gnu/packages/messaging.scm')
| -rw-r--r-- | gnu/packages/messaging.scm | 106 |
1 files changed, 51 insertions, 55 deletions
diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index d95e7677e36..d6bdd9bf1d7 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm | |||
| @@ -1438,74 +1438,70 @@ default.") | |||
| 1438 | (define-public prosody | 1438 | (define-public prosody |
| 1439 | (package | 1439 | (package |
| 1440 | (name "prosody") | 1440 | (name "prosody") |
| 1441 | (version "0.12.4") | 1441 | (version "13.0.6") |
| 1442 | (source (origin | 1442 | (source (origin |
| 1443 | (method url-fetch) | 1443 | (method url-fetch) |
| 1444 | (uri (string-append "https://prosody.im/downloads/source/" | 1444 | (uri (string-append "https://prosody.im/downloads/source/" |
| 1445 | "prosody-" version ".tar.gz")) | 1445 | "prosody-" version ".tar.gz")) |
| 1446 | (sha256 | 1446 | (sha256 |
| 1447 | (base32 | 1447 | (base32 |
| 1448 | "0mjqss1h2cw0nlyj9nkxdg1bnq1j0zndlv1g8665aa9g7hki5ms7")))) | 1448 | "03q5jdywcjsjzkfgv4m3d57crv8wdarkyzdh0i5azhv2ynf6ysgc")))) |
| 1449 | (build-system gnu-build-system) | 1449 | (build-system gnu-build-system) |
| 1450 | (arguments | 1450 | (arguments |
| 1451 | `(#:tests? #f ;tests require "busted" | 1451 | (list |
| 1452 | #:configure-flags (list "--no-example-certs") | 1452 | #:tests? #f ;tests require "busted" |
| 1453 | #:modules ((ice-9 match) | 1453 | #:configure-flags ''("--no-example-certs") |
| 1454 | (srfi srfi-1) | 1454 | #:phases |
| 1455 | (guix build gnu-build-system) | 1455 | #~(modify-phases %standard-phases |
| 1456 | (guix build utils)) | 1456 | (replace 'configure |
| 1457 | #:phases | 1457 | ;; configure fails if it is followed by SHELL, CONFIG_SHELL, |
| 1458 | (modify-phases %standard-phases | 1458 | ;; --enable-fast-install, and --build |
| 1459 | (add-after 'unpack 'fix-configure-script | 1459 | (lambda* (#:key configure-flags #:allow-other-keys) |
| 1460 | (lambda _ | 1460 | (apply invoke "./configure" (string-append "--prefix=" #$output) |
| 1461 | ;; The configure script aborts when it encounters unexpected | 1461 | configure-flags))) |
| 1462 | ;; arguments. Make it more tolerant. | 1462 | (add-after 'unpack 'fix-makefile |
| 1463 | (substitute* "configure" | 1463 | (lambda _ |
| 1464 | (("exit 1") "")))) | 1464 | (substitute* "GNUmakefile" |
| 1465 | (add-after 'unpack 'fix-makefile | 1465 | ;; prosodyctl needs to read the configuration file. |
| 1466 | (lambda _ | 1466 | (("^INSTALLEDCONFIG =.*") "INSTALLEDCONFIG = /etc/prosody\n") |
| 1467 | (substitute* "GNUmakefile" | 1467 | ;; prosodyctl needs a place to put auto-generated certificates. |
| 1468 | ;; prosodyctl needs to read the configuration file. | 1468 | (("^INSTALLEDDATA =.*") "INSTALLEDDATA = /var/lib/prosody\n")))) |
| 1469 | (("^INSTALLEDCONFIG =.*") "INSTALLEDCONFIG = /etc/prosody\n") | 1469 | (add-after 'unpack 'invoke-prosody-wrapper |
| 1470 | ;; prosodyctl needs a place to put auto-generated certificates. | 1470 | (lambda _ |
| 1471 | (("^INSTALLEDDATA =.*") "INSTALLEDDATA = /var/lib/prosody\n")))) | 1471 | ;; Invoke the prosody wrapper script instead of invoking lua on |
| 1472 | (add-after 'unpack 'invoke-prosody-wrapper | 1472 | ;; the actual executable. |
| 1473 | (lambda* (#:key inputs outputs #:allow-other-keys) | 1473 | (substitute* "util/prosodyctl.lua" |
| 1474 | ;; Invoke the prosody wrapper script instead of invoking lua on | 1474 | (("(os.execute\\()lua .*(/prosody -D\"\\);)" all left right) |
| 1475 | ;; the actual executable. | 1475 | (simple-format #f "~a\"~a/bin~a" left #$output right))))) |
| 1476 | (substitute* "util/prosodyctl.lua" | 1476 | (add-after 'install 'wrap-programs |
| 1477 | (("os.execute\\(lua[^;]*") | 1477 | (lambda _ |
| 1478 | (string-append "os.execute(\"" | 1478 | ;; Make sure all executables in "bin" find the required Lua |
| 1479 | (assoc-ref outputs "out") | 1479 | ;; modules at runtime. |
| 1480 | "/bin/prosody -D\")"))))) | 1480 | (let* ((bin (string-append #$output "/bin/")) |
| 1481 | (add-after 'install 'wrap-programs | 1481 | (path (map (lambda (dir) |
| 1482 | (lambda* (#:key inputs outputs #:allow-other-keys) | 1482 | (string-append dir "/bin")) |
| 1483 | ;; Make sure all executables in "bin" find the required Lua | 1483 | (list #$(this-package-input "openssl") |
| 1484 | ;; modules at runtime. | 1484 | #$(this-package-input "coreutils"))))) |
| 1485 | (let* ((out (assoc-ref outputs "out")) | 1485 | (for-each (lambda (file) |
| 1486 | (bin (string-append out "/bin/")) | 1486 | (wrap-program file |
| 1487 | (openssl (assoc-ref inputs "openssl")) | 1487 | `("GUIX_LUA_PATH" ";" prefix (,(getenv "GUIX_LUA_PATH"))) |
| 1488 | (coreutils (assoc-ref inputs "coreutils")) | 1488 | `("GUIX_LUA_CPATH" ";" prefix (,(getenv "GUIX_LUA_CPATH"))) |
| 1489 | (path (map (lambda (dir) | 1489 | `("PATH" ":" prefix ,path))) |
| 1490 | (string-append dir "/bin")) | 1490 | (find-files bin ".*")))))))) |
| 1491 | (list openssl coreutils)))) | ||
| 1492 | (for-each (lambda (file) | ||
| 1493 | (wrap-program file | ||
| 1494 | `("GUIX_LUA_PATH" ";" prefix (,(getenv "GUIX_LUA_PATH"))) | ||
| 1495 | `("GUIX_LUA_CPATH" ";" prefix (,(getenv "GUIX_LUA_CPATH"))) | ||
| 1496 | `("PATH" ":" prefix ,path))) | ||
| 1497 | (find-files bin ".*")))))))) | ||
| 1498 | (inputs | 1491 | (inputs |
| 1499 | (list bash-minimal | 1492 | (list bash-minimal |
| 1493 | coreutils | ||
| 1500 | icu4c | 1494 | icu4c |
| 1501 | libidn | 1495 | libidn |
| 1502 | openssl | 1496 | openssl |
| 1503 | lua-5.2 | 1497 | lua-5.4 |
| 1504 | lua5.2-bitop | 1498 | ;; required |
| 1505 | lua5.2-expat | 1499 | lua5.4-socket |
| 1506 | lua5.2-socket | 1500 | lua5.4-sec |
| 1507 | lua5.2-filesystem | 1501 | lua5.4-expat |
| 1508 | lua5.2-sec)) | 1502 | lua5.4-filesystem |
| 1503 | ;; optional | ||
| 1504 | lua5.4-unbound)) | ||
| 1509 | (home-page "https://prosody.im/") | 1505 | (home-page "https://prosody.im/") |
| 1510 | (synopsis "Jabber (XMPP) server") | 1506 | (synopsis "Jabber (XMPP) server") |
| 1511 | (description "Prosody is a modern XMPP communication server. It aims to | 1507 | (description "Prosody is a modern XMPP communication server. It aims to |
