From a2789da021ea529c63a2b59838f654f54dba77a4 Mon Sep 17 00:00:00 2001 From: K900 Date: Sun, 13 Apr 2025 14:16:01 +0300 Subject: [PATCH] kdePackages.libktorrent: fix build with Qt 6.9 --- pkgs/kde/gear/libktorrent/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pkgs/kde/gear/libktorrent/default.nix b/pkgs/kde/gear/libktorrent/default.nix index c802f01111f9..8f28992fc39b 100644 --- a/pkgs/kde/gear/libktorrent/default.nix +++ b/pkgs/kde/gear/libktorrent/default.nix @@ -5,10 +5,25 @@ boost, gmp, libgcrypt, + fetchpatch, }: mkKdeDerivation { pname = "libktorrent"; + # Backport patches to fix build with Qt 6.9 + # FIXME: remove in 25.04 + patches = [ + (fetchpatch { + url = "https://invent.kde.org/network/libktorrent/-/commit/4bcf7eb1e0cb781286eae33751acd8e827080ec5.patch"; + includes = [ "src/utp/connection.cpp" ]; + hash = "sha256-gj5jLViuzttfzCrx/izmajJiH3vE9TkfsXS+1r/qGNc="; + }) + (fetchpatch { + url = "https://invent.kde.org/network/libktorrent/-/commit/4f73038c74b5d72b2f7f1377c7bf037f111e965d.patch"; + hash = "sha256-dQeZLmnagxBOUR2hnxF65jIRSAntTrEggxdUf3NNzDE="; + }) + ]; + extraNativeBuildInputs = [ doxygen ]; extraBuildInputs = [ qt5compat ]; extraPropagatedBuildInputs = [