musescore: fix build with Qt 6.9

K900 f72f529c 8ec9b168

+24
+11
pkgs/applications/audio/musescore/default.nix
··· 2 2 stdenv, 3 3 lib, 4 4 fetchFromGitHub, 5 + fetchpatch, 5 6 cmake, 6 7 wrapGAppsHook3, 7 8 wrapQtAppsHook, ··· 43 44 rev = "v${finalAttrs.version}"; 44 45 sha256 = "sha256-ha3rBILekycHiPdcaPNsbvlF289NzFs9srP3unOuJRg="; 45 46 }; 47 + 48 + # Backport + additional patch to fix build on Qt 6.9 49 + # FIXME: remove when no longer required 50 + patches = [ 51 + (fetchpatch { 52 + url = "https://github.com/musescore/MuseScore/commit/05056ed19520060c3912a09a3adfa0927057f956.patch"; 53 + hash = "sha256-50Hytuu2lQRbAI2JEwlKeMUmJxTUtfqgwru6U760hAY="; 54 + }) 55 + ./qt-6.9.patch 56 + ]; 46 57 47 58 cmakeFlags = [ 48 59 "-DMUSE_APP_BUILD_MODE=release"
+13
pkgs/applications/audio/musescore/qt-6.9.patch
··· 1 + diff --git a/src/palette/view/widgets/specialcharactersdialog.cpp b/src/palette/view/widgets/specialcharactersdialog.cpp 2 + index 2fe07bdb8f..dfcae1ded7 100644 3 + --- a/src/palette/view/widgets/specialcharactersdialog.cpp 4 + +++ b/src/palette/view/widgets/specialcharactersdialog.cpp 5 + @@ -712,7 +712,7 @@ void SpecialCharactersDialog::populateUnicode() 6 + std::shared_ptr<FSymbol> fs = std::make_shared<FSymbol>(gpaletteScore->dummy()); 7 + fs->setCode(code); 8 + fs->setFont(m_font); 9 + - m_pUnicode->appendElement(fs, QString("0x%1").arg(code, 5, 16, QLatin1Char('0'))); 10 + + m_pUnicode->appendElement(fs, QString("0x%1").arg((uint32_t)code, 5, 16, QLatin1Char('0'))); 11 + } 12 + } 13 +