tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
musescore: fix build with Qt 6.9
K900
10 months ago
f72f529c
8ec9b168
+24
2 changed files
expand all
collapse all
unified
split
pkgs
applications
audio
musescore
default.nix
qt-6.9.patch
+11
pkgs/applications/audio/musescore/default.nix
···
2
2
stdenv,
3
3
lib,
4
4
fetchFromGitHub,
5
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
47
+
48
48
+
# Backport + additional patch to fix build on Qt 6.9
49
49
+
# FIXME: remove when no longer required
50
50
+
patches = [
51
51
+
(fetchpatch {
52
52
+
url = "https://github.com/musescore/MuseScore/commit/05056ed19520060c3912a09a3adfa0927057f956.patch";
53
53
+
hash = "sha256-50Hytuu2lQRbAI2JEwlKeMUmJxTUtfqgwru6U760hAY=";
54
54
+
})
55
55
+
./qt-6.9.patch
56
56
+
];
46
57
47
58
cmakeFlags = [
48
59
"-DMUSE_APP_BUILD_MODE=release"
+13
pkgs/applications/audio/musescore/qt-6.9.patch
···
1
1
+
diff --git a/src/palette/view/widgets/specialcharactersdialog.cpp b/src/palette/view/widgets/specialcharactersdialog.cpp
2
2
+
index 2fe07bdb8f..dfcae1ded7 100644
3
3
+
--- a/src/palette/view/widgets/specialcharactersdialog.cpp
4
4
+
+++ b/src/palette/view/widgets/specialcharactersdialog.cpp
5
5
+
@@ -712,7 +712,7 @@ void SpecialCharactersDialog::populateUnicode()
6
6
+
std::shared_ptr<FSymbol> fs = std::make_shared<FSymbol>(gpaletteScore->dummy());
7
7
+
fs->setCode(code);
8
8
+
fs->setFont(m_font);
9
9
+
- m_pUnicode->appendElement(fs, QString("0x%1").arg(code, 5, 16, QLatin1Char('0')));
10
10
+
+ m_pUnicode->appendElement(fs, QString("0x%1").arg((uint32_t)code, 5, 16, QLatin1Char('0')));
11
11
+
}
12
12
+
}
13
13
+