kde/plasma: apply hacks to fix build

This commit is contained in:
K900 2024-03-06 10:43:17 +03:00
parent 242a616c1e
commit 35f59cc7a5
3 changed files with 17 additions and 0 deletions

View File

@ -10,5 +10,10 @@ mkKdeDerivation {
# FIXME(later): upstream
patches = [./0001-fix-add-executable-bit.patch];
# FIXME: hack to fix build, remove for 6.0.2
postPatch = ''
substituteInPlace CMakeLists.txt --replace-fail "ECM 6.0.1" "ECM 6.0.0"
'';
extraNativeBuildInputs = [sass python3 python3Packages.pycairo];
}

View File

@ -41,6 +41,9 @@ in
postPatch =
''
substituteInPlace cmake/FindPlymouth.cmake --subst-var out
# FIXME: hack to fix build, remove for 6.0.2
substituteInPlace CMakeLists.txt --replace-fail "ECM 6.0.1" "ECM 6.0.0"
''
+ lib.optionalString (logoFile != null) ''
cp ${logoFile} breeze/images/${resolvedLogoName}.logo.png

View File

@ -1,5 +1,6 @@
{
mkKdeDerivation,
fetchpatch,
qtquick3d,
pkg-config,
pipewire,
@ -10,6 +11,14 @@
mkKdeDerivation {
pname = "kpipewire";
# FIXME: backport to fix build, remove for 6.0.2
patches = [
(fetchpatch {
url = "https://invent.kde.org/plasma/kpipewire/-/commit/df052bfa3c66d24109f40f18266ee057d1838b9b.patch";
hash = "sha256-69ftUUz5cvG/CmCw3hHFeU8XKhZPJjnx1raJCCay38g=";
})
];
extraNativeBuildInputs = [pkg-config];
extraBuildInputs = [qtquick3d pipewire ffmpeg mesa libva];
}