2022-10-07 10:39:27 +00:00
|
|
|
{
|
|
|
|
mkDerivation,
|
|
|
|
lib,
|
|
|
|
extra-cmake-modules,
|
|
|
|
kdoctools,
|
2023-02-11 11:21:14 +00:00
|
|
|
wayland-scanner,
|
2022-10-07 10:39:27 +00:00
|
|
|
isocodes,
|
|
|
|
libdbusmenu,
|
|
|
|
libSM,
|
|
|
|
libXcursor,
|
|
|
|
libXtst,
|
|
|
|
libXft,
|
|
|
|
pam,
|
|
|
|
wayland,
|
|
|
|
xmessage,
|
|
|
|
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,
|
|
|
|
plasma-wayland-protocols,
|
|
|
|
kpipewire,
|
|
|
|
libkexiv2,
|
2022-08-07 10:07:20 +00:00
|
|
|
kuserfeedback,
|
2022-10-07 10:39:27 +00:00
|
|
|
qtgraphicaleffects,
|
|
|
|
qtquickcontrols,
|
|
|
|
qtquickcontrols2,
|
|
|
|
qtscript,
|
|
|
|
qttools,
|
|
|
|
qtwayland,
|
|
|
|
qtx11extras,
|
|
|
|
qqc2-desktop-style,
|
|
|
|
polkit-qt,
|
|
|
|
pipewire,
|
|
|
|
libdrm,
|
2023-08-10 09:49:16 +00:00
|
|
|
fetchpatch,
|
2016-04-21 16:01:22 +00:00
|
|
|
}:
|
|
|
|
|
2017-10-19 23:22:03 +00:00
|
|
|
let
|
|
|
|
inherit (lib) getBin getLib;
|
|
|
|
in
|
|
|
|
|
2017-05-15 16:44:58 +00:00
|
|
|
mkDerivation {
|
2022-03-06 21:28:56 +00:00
|
|
|
pname = "plasma-workspace";
|
2020-10-08 22:18:26 +00:00
|
|
|
passthru.providedSessions = [
|
|
|
|
"plasma"
|
|
|
|
"plasmawayland"
|
|
|
|
];
|
2016-04-21 16:01:22 +00:00
|
|
|
|
2023-02-11 11:21:14 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
extra-cmake-modules
|
|
|
|
kdoctools
|
|
|
|
wayland-scanner
|
|
|
|
];
|
2016-06-08 15:26:24 +00:00
|
|
|
buildInputs = [
|
2022-10-07 10:39:27 +00:00
|
|
|
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
|
|
|
|
plasma-wayland-protocols
|
|
|
|
kpipewire
|
2022-09-15 16:23:51 +00:00
|
|
|
libkexiv2
|
2017-05-26 20:44:36 +00:00
|
|
|
|
2022-08-07 10:07:20 +00:00
|
|
|
kuserfeedback
|
2022-10-07 10:39:27 +00:00
|
|
|
qtgraphicaleffects
|
|
|
|
qtquickcontrols
|
|
|
|
qtquickcontrols2
|
|
|
|
qtscript
|
|
|
|
qtwayland
|
|
|
|
qtx11extras
|
|
|
|
qqc2-desktop-style
|
|
|
|
polkit-qt
|
|
|
|
|
|
|
|
pipewire
|
|
|
|
libdrm
|
2016-04-21 16:01:22 +00:00
|
|
|
];
|
2019-07-05 15:41:41 +00:00
|
|
|
propagatedUserEnvPkgs = [ qtgraphicaleffects ];
|
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"dev"
|
|
|
|
];
|
2016-04-21 16:01:22 +00:00
|
|
|
|
2020-02-06 02:08:40 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
''-DNIXPKGS_BREEZE_WALLPAPERS=${getBin breeze-qt5}/share/wallpapers''
|
|
|
|
];
|
|
|
|
|
2018-07-10 14:53:12 +00:00
|
|
|
patches = [
|
2020-01-28 13:20:48 +00:00
|
|
|
./0001-startkde.patch
|
2020-02-06 02:08:40 +00:00
|
|
|
./0002-absolute-wallpaper-install-dir.patch
|
2023-09-30 07:57:40 +00:00
|
|
|
|
|
|
|
# Backport patch for cleaner shutdowns
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://invent.kde.org/plasma/plasma-workspace/-/commit/6ce8f434139f47e6a71bf0b68beae92be8845ce4.patch";
|
|
|
|
hash = "sha256-cYw/4/9tSnCbArLr72O8F8V0NLkVXdCVnJGoGxSzZMg=";
|
|
|
|
})
|
2018-07-10 14:53:12 +00:00
|
|
|
];
|
2016-04-28 18:17:49 +00:00
|
|
|
|
2021-03-23 05:50:25 +00:00
|
|
|
# QT_INSTALL_BINS refers to qtbase, and qdbus is in qttools
|
2020-09-06 14:05:14 +00:00
|
|
|
postPatch = ''
|
2021-03-23 05:50:25 +00:00
|
|
|
substituteInPlace CMakeLists.txt \
|
2022-06-14 20:47:34 +00:00
|
|
|
--replace 'ecm_query_qt(QtBinariesDir QT_INSTALL_BINS)' 'set(QtBinariesDir "${lib.getBin qttools}/bin")'
|
2020-09-06 14:05:14 +00:00
|
|
|
'';
|
|
|
|
|
2022-09-15 16:23:51 +00:00
|
|
|
# work around wrapQtAppsHook double-wrapping kcminit_startup,
|
|
|
|
# which is a symlink to kcminit
|
|
|
|
postFixup = ''
|
|
|
|
ln -sf $out/bin/kcminit $out/bin/kcminit_startup
|
|
|
|
'';
|
|
|
|
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
2020-01-28 13:20:48 +00:00
|
|
|
''-DNIXPKGS_XMESSAGE="${getBin xmessage}/bin/xmessage"''
|
|
|
|
''-DNIXPKGS_XSETROOT="${getBin xsetroot}/bin/xsetroot"''
|
|
|
|
''-DNIXPKGS_START_KDEINIT_WRAPPER="${getLib kinit}/libexec/kf5/start_kdeinit_wrapper"''
|
|
|
|
''-DNIXPKGS_KDEINIT5_SHUTDOWN="${getBin kinit}/bin/kdeinit5_shutdown"''
|
|
|
|
];
|
2016-04-21 16:01:22 +00:00
|
|
|
}
|