Skip to content

Commit

Permalink
Plasma 5.20.4 + some build fixes (dependencies, patches, ..)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamburger1984 committed Dec 3, 2020
1 parent 96f2a3f commit 7cbfdd7
Show file tree
Hide file tree
Showing 13 changed files with 246 additions and 264 deletions.
2 changes: 1 addition & 1 deletion pkgs/desktops/plasma-5/default.nix
Expand Up @@ -127,6 +127,7 @@ let
oxygen = callPackage ./oxygen.nix {};
plasma-browser-integration = callPackage ./plasma-browser-integration.nix {};
plasma-desktop = callPackage ./plasma-desktop {};
plasma-disks = callPackage ./plasma-disks.nix {};
plasma-integration = callPackage ./plasma-integration {};
plasma-nm = callPackage ./plasma-nm {};
plasma-pa = callPackage ./plasma-pa.nix { inherit gconf; };
Expand All @@ -138,7 +139,6 @@ let
powerdevil = callPackage ./powerdevil.nix {};
sddm-kcm = callPackage ./sddm-kcm.nix {};
systemsettings = callPackage ./systemsettings.nix {};
user-manager = callPackage ./user-manager.nix {};
xdg-desktop-portal-kde = callPackage ./xdg-desktop-portal-kde.nix {};

thirdParty = let inherit (libsForQt5) callPackage; in {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/desktops/plasma-5/fetch.sh
@@ -1 +1 @@
WGET_ARGS=( https://download.kde.org/stable/plasma/5.20.3/ )
WGET_ARGS=( https://download.kde.org/stable/plasma/5.20.4/ )
4 changes: 2 additions & 2 deletions pkgs/desktops/plasma-5/kde-gtk-config/default.nix
Expand Up @@ -2,7 +2,7 @@
mkDerivation,
extra-cmake-modules, wrapGAppsHook,
glib, gtk2, gtk3, karchive, kcmutils, kconfigwidgets, ki18n, kiconthemes, kio,
knewstuff, gsettings-desktop-schemas, xsettingsd
knewstuff, gsettings-desktop-schemas, xsettingsd, kdecoration, sass
}:

mkDerivation {
Expand All @@ -11,7 +11,7 @@ mkDerivation {
dontWrapGApps = true; # There is nothing to wrap
buildInputs = [
ki18n kio glib gtk2 gtk3 karchive kcmutils kconfigwidgets kiconthemes
knewstuff gsettings-desktop-schemas xsettingsd
knewstuff gsettings-desktop-schemas xsettingsd kdecoration sass
];
cmakeFlags = [
"-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include"
Expand Down
7 changes: 1 addition & 6 deletions pkgs/desktops/plasma-5/kwin/default.nix
Expand Up @@ -33,15 +33,10 @@ mkDerivation {
kwayland kwayland-server kwidgetsaddons kwindowsystem kxmlgui plasma-framework
libcap libdrm mesa
];
outputs = [ "bin" "dev" "out" ];
outputs = [ "dev" "out" ];
patches = [
./0001-follow-symlinks.patch
./0002-xwayland.patch
(fetchpatch { # included in >= 5.18.6
name = "EGL_TEXTURE_Y_XUXV_WL.diff";
url = "https://github.com/KDE/kwin/commit/2c76cc478.diff";
sha256 = "1ywaky05h5j1x758q3yhp3ap45ispffghyxynqz5lybl5n6yyxhy";
})
];
CXXFLAGS = [
''-DNIXPKGS_XWAYLAND=\"${lib.getBin xwayland}/bin/Xwayland\"''
Expand Down
4 changes: 2 additions & 2 deletions pkgs/desktops/plasma-5/oxygen.nix
Expand Up @@ -3,7 +3,7 @@
extra-cmake-modules,
frameworkintegration, kcmutils, kcompletion, kconfig, kdecoration, kguiaddons,
ki18n, kwidgetsaddons, kservice, kwayland, kwindowsystem, qtdeclarative,
qtx11extras
qtx11extras, libXdmcp
}:

mkDerivation {
Expand All @@ -12,7 +12,7 @@ mkDerivation {
propagatedBuildInputs = [
frameworkintegration kcmutils kcompletion kconfig kdecoration kguiaddons
ki18n kservice kwayland kwidgetsaddons kwindowsystem qtdeclarative
qtx11extras
qtx11extras libXdmcp
];
outputs = [ "bin" "dev" "out" ];
}
19 changes: 19 additions & 0 deletions pkgs/desktops/plasma-5/plasma-disks.nix
@@ -0,0 +1,19 @@
{
mkDerivation, extra-cmake-modules, kdoctools,
kcmutils, kconfig, kdbusaddons, khtml, ki18n, kiconthemes, kio, kitemviews,
kservice, kwindowsystem, kxmlgui, qtquickcontrols, qtquickcontrols2,
kactivities, kactivities-stats, kirigami2, kcrash, plasma-workspace,
systemsettings
}:

mkDerivation {
name = "plasma-disks";
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
buildInputs = [
kcmutils kconfig kdbusaddons khtml ki18n kiconthemes kio kitemviews kservice
kwindowsystem kxmlgui qtquickcontrols qtquickcontrols2
kactivities kactivities-stats kirigami2 kcrash plasma-workspace
systemsettings
];
outputs = [ "bin" "dev" "out" ];
}
25 changes: 6 additions & 19 deletions pkgs/desktops/plasma-5/plasma-workspace/0001-startkde.patch
Expand Up @@ -14,20 +14,20 @@ diff --git a/startkde/plasma-session/startup.cpp b/startkde/plasma-session/start
index 89cc144ba..8ca9e81d2 100644
--- a/startkde/plasma-session/startup.cpp
+++ b/startkde/plasma-session/startup.cpp
@@ -210,7 +210,7 @@ Startup::Startup(QObject *parent):
@@ -211,7 +211,7 @@ Startup::Startup(QObject *parent):
upAndRunning(QStringLiteral("ksmserver"));
const AutoStart autostart;

- QProcess::execute(QStringLiteral(CMAKE_INSTALL_FULL_LIBEXECDIR_KF5 "/start_kdeinit_wrapper"));
+ QProcess::execute(QStringLiteral(NIXPKGS_START_KDEINIT_WRAPPER));
- QProcess::execute(QStringLiteral(CMAKE_INSTALL_FULL_LIBEXECDIR_KF5 "/start_kdeinit_wrapper"), QStringList());
+ QProcess::execute(QStringLiteral(NIXPKGS_START_KDEINIT_WRAPPER), QStringList());

KJob* phase1;
QProcessEnvironment kdedProcessEnv;
diff --git a/startkde/startplasma-waylandsession.cpp b/startkde/startplasma-waylandsession.cpp
index f59654d18..5e3a93db0 100644
--- a/startkde/startplasma-waylandsession.cpp
+++ b/startkde/startplasma-waylandsession.cpp
@@ -66,7 +66,7 @@ int main(int argc, char** argv)
@@ -61,7 +61,7 @@ int main(int argc, char** argv)
waitForKonqi();
out << "startplasma-waylandsession: Shutting down...\n";

Expand All @@ -53,7 +53,7 @@ diff --git a/startkde/startplasma.cpp b/startkde/startplasma.cpp
index a055d5635..62afb1513 100644
--- a/startkde/startplasma.cpp
+++ b/startkde/startplasma.cpp
@@ -40,7 +40,7 @@ QTextStream out(stderr);
@@ -41,7 +41,7 @@ QTextStream out(stderr);
void messageBox(const QString &text)
{
out << text;
Expand All @@ -62,7 +62,7 @@ index a055d5635..62afb1513 100644
}

QStringList allServices(const QLatin1String& prefix)
@@ -261,15 +261,15 @@ void setupX11()
@@ -262,15 +262,15 @@ void setupX11()
// If the user has overwritten fonts, the cursor font may be different now
// so don't move this up.

Expand All @@ -83,19 +83,6 @@ index a055d5635..62afb1513 100644
}

// TODO: Check if Necessary
@@ -286,11 +286,7 @@ bool syncDBusEnvironment()
{
int exitCode;
// At this point all environment variables are set, let's send it to the DBus session server to update the activation environment
- if (!QStandardPaths::findExecutable(QStringLiteral("dbus-update-activation-environment")).isEmpty()) {
- exitCode = runSync(QStringLiteral("dbus-update-activation-environment"), { QStringLiteral("--systemd"), QStringLiteral("--all") });
- } else {
- exitCode = runSync(QStringLiteral(CMAKE_INSTALL_FULL_LIBEXECDIR "/ksyncdbusenv"), {});
- }
+ exitCode = runSync(QStringLiteral(NIXPKGS_DBUS_UPDATE_ACTIVATION_ENVIRONMENT), { QStringLiteral("--systemd"), QStringLiteral("--all") });
return exitCode == 0;
}

@@ -306,7 +302,7 @@ void setupFontDpi()
//TODO port to c++?
const QByteArray input = "Xft.dpi: " + QByteArray::number(fontsCfg.readEntry("forceFontDPI", 0));
Expand Down
8 changes: 4 additions & 4 deletions pkgs/desktops/plasma-5/plasma-workspace/default.nix
Expand Up @@ -4,15 +4,15 @@
extra-cmake-modules, kdoctools,

coreutils, dbus, gnugrep, gnused, isocodes, libdbusmenu, libSM, libXcursor,
libXtst, pam, wayland, xmessage, xprop, xrdb, xsetroot,
libXtst, libXft, pam, wayland, xmessage, xprop, xrdb, xsetroot,

baloo, breeze-qt5, kactivities, kactivities-stats, kcmutils, kconfig, kcrash,
kdbusaddons, kdeclarative, kdelibs4support, kdesu, kglobalaccel, kidletime,
kinit, kjsembed, knewstuff, knotifyconfig, kpackage, kpeople, krunner,
kscreenlocker, ktexteditor, ktextwidgets, kwallet, kwayland, kwin,
kxmlrpcclient, libkscreen, libksysguard, libqalculate, networkmanager-qt,
phonon, plasma-framework, prison, solid, kholidays, kquickcharts,
appstream-qt,
appstream-qt, plasma-wayland-protocols,

qtgraphicaleffects, qtquickcontrols, qtquickcontrols2, qtscript, qttools,
qtwayland, qtx11extras,
Expand All @@ -25,14 +25,14 @@ mkDerivation {

nativeBuildInputs = [ extra-cmake-modules kdoctools ];
buildInputs = [
isocodes libdbusmenu libSM libXcursor libXtst pam wayland
isocodes libdbusmenu libSM libXcursor libXtst libXft pam wayland

baloo kactivities kactivities-stats kcmutils kconfig kcrash kdbusaddons
kdeclarative kdelibs4support kdesu kglobalaccel kidletime kjsembed knewstuff
knotifyconfig kpackage kpeople krunner kscreenlocker ktexteditor
ktextwidgets kwallet kwayland kwin kxmlrpcclient libkscreen libksysguard
libqalculate networkmanager-qt phonon plasma-framework prison solid
kholidays kquickcharts appstream-qt
kholidays kquickcharts appstream-qt plasma-wayland-protocols

qtgraphicaleffects qtquickcontrols qtquickcontrols2 qtscript qtwayland qtx11extras
];
Expand Down
16 changes: 4 additions & 12 deletions pkgs/desktops/plasma-5/powerdevil.nix
Expand Up @@ -19,18 +19,10 @@ mkDerivation {
"-DHAVE_DDCUTIL=On"
];
patches = [
# This fixes an issue where 'DDCA_Feature_List*' cannot be converted to
# 'DDCA_Feature_List'.
# https://bugs.kde.org/show_bug.cgi?id=423605
(fetchpatch {
url = "https://invent.kde.org/plasma/powerdevil/-/commit/fcb26be2fb279e6ad3b7b814d26a5921d16201eb.patch";
sha256 = "0gdyaa0nd1c1d6x2h0m933lascm8zm5sikd99wxmkf7hhaby6k2s";
})

# Reduce log message spam by setting the default log level to Warning.
(fetchpatch {
url = "https://invent.kde.org/plasma/powerdevil/-/commit/c7590f9065ec9547b7fabad77a548bbc0c693113.patch";
sha256 = "077whhi0jrb3bajx357k7n66hv7nchis8jix0nfc1zjvi9fm6pi2";
})
#(fetchpatch {
# url = "https://invent.kde.org/plasma/powerdevil/-/commit/c7590f9065ec9547b7fabad77a548bbc0c693113.patch";
# sha256 = "077whhi0jrb3bajx357k7n66hv7nchis8jix0nfc1zjvi9fm6pi2";
#})
];
}

0 comments on commit 7cbfdd7

Please sign in to comment.