obs-studio-plugins.obs-tuna: add patch for qt 6.6 support

This commit is contained in:
Nick Cao 2023-10-10 22:52:46 -04:00
parent ac20d172c4
commit 4bb402ac96
No known key found for this signature in database

View File

@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch2
, obs-studio
, cmake
, zlib
@ -27,6 +28,16 @@ stdenv.mkDerivation (finalAttrs: {
fetchSubmodules = true;
};
patches = [
# fix build with qt 6.6.0
# treewide: replace deprecated qAsConst with std::as_const()
# https://github.com/univrsal/tuna/pull/176
(fetchpatch2 {
url = "https://github.com/univrsal/tuna/commit/0d570e771f8d8e6ae7c85bd2b86bbf59c264789e.patch";
hash = "sha256-A5idhMiM9funqhTm5XMIBqwy+FO1SaNPtgZjo+Vws6k=";
})
];
postInstall = ''
mkdir $out/lib $out/share
mv $out/obs-plugins/64bit $out/lib/obs-plugins