2022-10-07 12:39:27 +02:00
|
|
|
{ mkDerivation
|
|
|
|
, lib
|
|
|
|
, extra-cmake-modules
|
|
|
|
, kdoctools
|
|
|
|
, wayland-scanner
|
|
|
|
, boost
|
|
|
|
, fontconfig
|
|
|
|
, ibus
|
|
|
|
, libXcursor
|
|
|
|
, libXft
|
|
|
|
, libcanberra_kde
|
|
|
|
, libpulseaudio
|
|
|
|
, libxkbfile
|
|
|
|
, xf86inputevdev
|
|
|
|
, xf86inputsynaptics
|
|
|
|
, xinput
|
|
|
|
, xkeyboard_config
|
|
|
|
, xorgserver
|
|
|
|
, util-linux
|
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
|
|
|
, accounts-qt
|
|
|
|
, qtdeclarative
|
|
|
|
, qtquickcontrols
|
|
|
|
, qtquickcontrols2
|
|
|
|
, qtsvg
|
|
|
|
, qtx11extras
|
|
|
|
, attica
|
|
|
|
, baloo
|
|
|
|
, kaccounts-integration
|
|
|
|
, kactivities
|
|
|
|
, kactivities-stats
|
|
|
|
, kauth
|
|
|
|
, kcmutils
|
|
|
|
, kdbusaddons
|
|
|
|
, kdeclarative
|
|
|
|
, kded
|
|
|
|
, kdelibs4support
|
|
|
|
, kemoticons
|
|
|
|
, kglobalaccel
|
|
|
|
, ki18n
|
|
|
|
, kitemmodels
|
|
|
|
, knewstuff
|
|
|
|
, knotifications
|
|
|
|
, knotifyconfig
|
|
|
|
, kpeople
|
|
|
|
, krunner
|
|
|
|
, kscreenlocker
|
|
|
|
, kwallet
|
|
|
|
, kwin
|
|
|
|
, phonon
|
|
|
|
, plasma-framework
|
|
|
|
, plasma-workspace
|
|
|
|
, qqc2-desktop-style
|
|
|
|
, xf86inputlibinput
|
2023-03-31 22:13:17 +02:00
|
|
|
, glib
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, runCommandLocal
|
|
|
|
, makeWrapper
|
2016-04-21 18:01:22 +02:00
|
|
|
}:
|
2023-07-12 14:55:30 +02:00
|
|
|
let
|
|
|
|
# run gsettings with desktop schemas for using in "kcm_access" kcm
|
|
|
|
# and in kaccess
|
|
|
|
gsettings-wrapper = runCommandLocal "gsettings-wrapper" { nativeBuildInputs = [ makeWrapper ]; } ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
makeWrapper ${glib}/bin/gsettings $out/bin/gsettings --prefix XDG_DATA_DIRS : ${gsettings-desktop-schemas.out}/share/gsettings-schemas/${gsettings-desktop-schemas.name}
|
|
|
|
'';
|
|
|
|
in
|
2019-08-13 23:52:01 +02:00
|
|
|
mkDerivation {
|
2022-03-06 22:28:56 +01:00
|
|
|
pname = "plasma-desktop";
|
2022-09-15 18:23:51 +02:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools wayland-scanner ];
|
2016-06-08 20:51:25 +02:00
|
|
|
buildInputs = [
|
2022-10-07 12:39:27 +02:00
|
|
|
boost
|
|
|
|
fontconfig
|
|
|
|
ibus
|
|
|
|
libcanberra_kde
|
|
|
|
libpulseaudio
|
|
|
|
libXcursor
|
|
|
|
libXft
|
|
|
|
xorgserver
|
|
|
|
libxkbfile
|
|
|
|
phonon
|
|
|
|
xf86inputlibinput
|
|
|
|
xf86inputevdev
|
|
|
|
xf86inputsynaptics
|
|
|
|
xinput
|
|
|
|
xkeyboard_config
|
|
|
|
wayland
|
|
|
|
wayland-protocols
|
2017-05-26 22:44:36 +02:00
|
|
|
|
2022-10-07 12:39:27 +02:00
|
|
|
accounts-qt
|
|
|
|
qtdeclarative
|
|
|
|
qtquickcontrols
|
|
|
|
qtquickcontrols2
|
|
|
|
qtsvg
|
|
|
|
qtx11extras
|
2017-05-26 22:44:36 +02:00
|
|
|
|
2022-10-07 12:39:27 +02:00
|
|
|
attica
|
|
|
|
baloo
|
|
|
|
kaccounts-integration
|
|
|
|
kactivities
|
|
|
|
kactivities-stats
|
|
|
|
kauth
|
|
|
|
kcmutils
|
|
|
|
kdbusaddons
|
|
|
|
kdeclarative
|
|
|
|
kded
|
|
|
|
kdelibs4support
|
|
|
|
kemoticons
|
|
|
|
kglobalaccel
|
|
|
|
ki18n
|
|
|
|
kitemmodels
|
|
|
|
knewstuff
|
|
|
|
knotifications
|
|
|
|
knotifyconfig
|
|
|
|
kpeople
|
|
|
|
krunner
|
|
|
|
kscreenlocker
|
|
|
|
kwallet
|
|
|
|
kwin
|
|
|
|
plasma-framework
|
|
|
|
plasma-workspace
|
|
|
|
qqc2-desktop-style
|
2016-04-21 18:01:22 +02:00
|
|
|
];
|
2017-01-20 17:44:21 +01:00
|
|
|
|
2020-08-25 11:43:59 +02:00
|
|
|
patches = [
|
|
|
|
./hwclock-path.patch
|
|
|
|
./tzdir.patch
|
2023-03-31 22:13:17 +02:00
|
|
|
./kcm-access.patch
|
2023-08-27 11:44:01 +02:00
|
|
|
./no-discover-shortcut.patch
|
2020-08-25 11:43:59 +02:00
|
|
|
];
|
2023-03-31 22:13:17 +02:00
|
|
|
CXXFLAGS =
|
|
|
|
[
|
|
|
|
''-DNIXPKGS_HWCLOCK=\"${lib.getBin util-linux}/bin/hwclock\"''
|
2023-07-12 14:55:30 +02:00
|
|
|
''-DNIXPKGS_GSETTINGS=\"${gsettings-wrapper}/bin/gsettings\"''
|
2023-03-31 22:13:17 +02:00
|
|
|
];
|
2016-11-13 19:33:38 +01:00
|
|
|
postInstall = ''
|
|
|
|
# Display ~/Desktop contents on the desktop by default.
|
2017-05-26 22:44:36 +02:00
|
|
|
sed -i "''${!outputBin}/share/plasma/shells/org.kde.plasma.desktop/contents/defaults" \
|
2016-11-13 19:33:38 +01:00
|
|
|
-e 's/Containment=org.kde.desktopcontainment/Containment=org.kde.plasma.folder/'
|
|
|
|
'';
|
2023-07-12 14:55:30 +02:00
|
|
|
|
|
|
|
# wrap kaccess with wrapped gsettings so it can access accessibility schemas
|
|
|
|
qtWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ gsettings-wrapper ]}" ];
|
2016-04-21 18:01:22 +02:00
|
|
|
}
|