From 89da14b4a7553903d1bfcaa4b8b52d37e9ada49f Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Sat, 4 Jan 2025 12:37:07 +0100 Subject: [PATCH] qtox: 1.17.6 -> 1.18.0, switch to TokTok fork The original qTox is unmaintained, the repo is archived since Feb 2023. Upstream warns about unofficial forks, however: * TokTok are the maintainers of toxcore * qtox.meta.homepage was set to tox.chat and the TokTok fork is listed in the tox.chat client list --- .../instant-messengers/qtox/default.nix | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/qtox/default.nix b/pkgs/applications/networking/instant-messengers/qtox/default.nix index 84b24dab2de798..030be0b8bb5f90 100644 --- a/pkgs/applications/networking/instant-messengers/qtox/default.nix +++ b/pkgs/applications/networking/instant-messengers/qtox/default.nix @@ -1,17 +1,14 @@ { lib , stdenv -, mkDerivation , fetchFromGitHub , cmake , pkg-config , perl +, kdePackages , libtoxcore , libpthreadstubs , libXdmcp , libXScrnSaver -, qtbase -, qtsvg -, qttools , ffmpeg , filter-audio , libexif @@ -21,28 +18,28 @@ , openal , pcre , qrencode +, qt6 , sqlcipher , AVFoundation }: -mkDerivation rec { +stdenv.mkDerivation rec { pname = "qtox"; - version = "1.17.6"; + version = "1.18.0"; src = fetchFromGitHub { - owner = "qTox"; + owner = "TokTok"; repo = "qTox"; - rev = "v${version}"; - sha256 = "sha256-naKWoodSMw0AEtACvkASFmw9t0H0d2pcqOW79NNTYF0="; + tag = "v${version}"; + hash = "sha256-UgUlWeFrNoNR1ZwobfNLmDBn9/Aw4LUMeSgIfrq/uqo="; }; buildInputs = [ + kdePackages.sonnet libtoxcore libpthreadstubs libXdmcp libXScrnSaver - qtbase - qtsvg ffmpeg filter-audio libexif @@ -52,17 +49,16 @@ mkDerivation rec { openal pcre qrencode + qt6.qtbase + qt6.qtsvg sqlcipher ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ AVFoundation ]; - nativeBuildInputs = [ cmake pkg-config qttools ] + nativeBuildInputs = [ cmake pkg-config qt6.qttools qt6.wrapQtAppsHook ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ perl ]; cmakeFlags = [ "-DGIT_DESCRIBE=v${version}" - "-DENABLE_STATUSNOTIFIER=False" - "-DENABLE_GTK_SYSTRAY=False" - "-DENABLE_APPINDICATOR=False" "-DTIMESTAMP=1" ];