guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 7f6f1b1850740cf32753327cc08747fc6232975d
Author: Andreas Enge <[email protected]>
AuthorDate: Sat Oct 25 23:21:15 2025 +0200

    gnu: qtox: Modernize.
    
    The previous git repository was archived, and recommends the new repository.
    
    * gnu/packages/messaging.scm (qtox)
    [source]: Switch to git-fetch. Use new git repository.
    [build-system]: Switch to qt-build-system.
    [arguments]<#:phases>{fix-reproducibility-issues}: Remove as fixed
    upstream.
    {wrap-executable}: Remove as part of qt-build-system.
    [inputs]: Remove qtbase-5, added by qt-build-system.
    Remove unused glib and gtk+-2. Add sonnet-5.
    
    Change-Id: I1c08468e023eab82d7147914d1ed7767fe27ad8e
---
 gnu/packages/messaging.scm | 34 +++++++++-------------------------
 1 file changed, 9 insertions(+), 25 deletions(-)

diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index 9cdfdf4aa5..b11e4b002b 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -1769,46 +1769,30 @@ instant messenger with audio and video chat 
capabilities.")
     (name "qtox")
     (version "1.17.6")
     (source (origin
-              (method url-fetch)
-              (uri (string-append "https://github.com/qTox/qTox/releases";
-                                  "/download/v" version
-                                  "/v" version ".tar.gz"))
+              (method git-fetch)
+              (uri (git-reference
+                     (url "https://github.com/TokTok/qTox";)
+                     (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
               (sha256
                (base32
-                "1ml8z1xpp3qhip4vkr375jf7y5kc18g0apm91n5am6ricx37c01r"))
-              (file-name (string-append name "-" version ".tar.gz"))))
-    (build-system cmake-build-system)
+                "0pb0ag9z9fz5m1f6lxzl86vksv0n290bw0nh2800scsjhyi9d8lx"))))
+    (build-system qt-build-system)
     (arguments
      (list #:phases
            #~(modify-phases %standard-phases
-               (add-after 'unpack 'fix-reproducibility-issues
-                 (lambda _
-                   (substitute* "src/main.cpp"
-                     (("__DATE__") "\"\"")
-                     (("__TIME__") "\"\"")
-                     (("TIMESTAMP") "\"\""))))
                (add-after 'unpack 'disable-network-tests
                  (lambda _
                    ;; These tests require network access.
                    (substitute* "cmake/Testing.cmake"
                      (("auto_test\\(core core\\)") "# auto_test(core core)")
-                     (("auto_test\\(net bsu\\)") "# auto_test(net bsu)"))))
-               ;; Ensure that icons are found at runtime.
-               (add-after 'install 'wrap-executable
-                 (lambda* (#:key inputs outputs #:allow-other-keys)
-                   (let ((out (assoc-ref outputs "out")))
-                     (wrap-program (string-append out "/bin/qtox")
-                       `("QT_PLUGIN_PATH" prefix
-                         ,(list (search-input-directory
-                                 inputs "lib/qt5/plugins/"))))))))))
+                     (("auto_test\\(net bsu\\)") "# auto_test(net bsu)")))))))
     (native-inputs
      (list pkg-config qttools-5))
     (inputs
      (list bash-minimal
            ffmpeg-6
            filteraudio
-           glib
-           gtk+-2
            libsodium
            c-toxcore
            libvpx
@@ -1818,8 +1802,8 @@ instant messenger with audio and video chat 
capabilities.")
            sqlite
            openal
            qrencode
-           qtbase-5
            qtsvg-5
+           sonnet-5
            sqlcipher))
     (home-page "https://qtox.github.io/";)
     (synopsis "Tox chat client using Qt")

Reply via email to