lxqt.libqtxdg: fix build against Qt >= 6.10

This commit is contained in:
Martin Joerg
2025-10-22 10:00:39 +00:00
parent b5d4fb5c91
commit c6e38d3032
+11
View File
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
qtbase,
qtsvg,
@@ -27,6 +28,16 @@ stdenv.mkDerivation rec {
."${version}";
};
patches = lib.optionals (version == "4.2.0") [
# fix build against Qt >= 6.10 (https://github.com/lxqt/libqtxdg/pull/313)
# TODO: drop when upgrading beyond version 4.2.0
(fetchpatch {
name = "cmake-fix-build-with-Qt-6.10.patch";
url = "https://github.com/lxqt/libqtxdg/commit/b01a024921acdfd5b0e97d5fda2933c726826e99.patch";
hash = "sha256-njpn6pU9BHlfYfkw/jEwh8w3Wo1F8MlRU8iQB+Tz2zU=";
})
];
nativeBuildInputs = [
cmake
lxqt-build-tools