From a47cfb4ac6d32eed5747c6381d56cb26965e89db Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Tue, 27 Jan 2015 22:16:31 -0600 Subject: add plasma-5.2 --- pkgs/desktops/plasma-5.2/default.nix | 167 +++++++++ pkgs/desktops/plasma-5.2/dependencies.nix | 284 +++++++++++++++ pkgs/desktops/plasma-5.2/dependencies.sh | 22 ++ .../kwin/kwin-import-plugin-follow-symlinks.patch | 13 + .../libkscreen/libkscreen-backend-path.patch | 130 +++++++ pkgs/desktops/plasma-5.2/manifest.nix | 214 ++++++++++++ pkgs/desktops/plasma-5.2/manifest.sh | 15 + .../plasma-desktop/plasma-desktop-hwclock.patch | 24 ++ .../plasma-desktop/plasma-desktop-zoneinfo.patch | 18 + pkgs/desktops/plasma-5.2/renames.nix | 23 ++ pkgs/desktops/plasma-5.2/setup-hook.sh | 1 + pkgs/desktops/plasma-5.2/startkde/default.nix | 33 ++ pkgs/desktops/plasma-5.2/startkde/kdeglobals | 11 + pkgs/desktops/plasma-5.2/startkde/startkde.in | 382 +++++++++++++++++++++ .../desktops/plasma-5.2/startkde/startupconfigkeys | 5 + 15 files changed, 1342 insertions(+) create mode 100644 pkgs/desktops/plasma-5.2/default.nix create mode 100644 pkgs/desktops/plasma-5.2/dependencies.nix create mode 100755 pkgs/desktops/plasma-5.2/dependencies.sh create mode 100644 pkgs/desktops/plasma-5.2/kwin/kwin-import-plugin-follow-symlinks.patch create mode 100644 pkgs/desktops/plasma-5.2/libkscreen/libkscreen-backend-path.patch create mode 100644 pkgs/desktops/plasma-5.2/manifest.nix create mode 100755 pkgs/desktops/plasma-5.2/manifest.sh create mode 100644 pkgs/desktops/plasma-5.2/plasma-desktop/plasma-desktop-hwclock.patch create mode 100644 pkgs/desktops/plasma-5.2/plasma-desktop/plasma-desktop-zoneinfo.patch create mode 100644 pkgs/desktops/plasma-5.2/renames.nix create mode 100644 pkgs/desktops/plasma-5.2/setup-hook.sh create mode 100644 pkgs/desktops/plasma-5.2/startkde/default.nix create mode 100644 pkgs/desktops/plasma-5.2/startkde/kdeglobals create mode 100644 pkgs/desktops/plasma-5.2/startkde/startkde.in create mode 100644 pkgs/desktops/plasma-5.2/startkde/startupconfigkeys (limited to 'pkgs/desktops/plasma-5.2') diff --git a/pkgs/desktops/plasma-5.2/default.nix b/pkgs/desktops/plasma-5.2/default.nix new file mode 100644 index 00000000000..28bdc26bd4e --- /dev/null +++ b/pkgs/desktops/plasma-5.2/default.nix @@ -0,0 +1,167 @@ +# Maintainer's Notes: +# +# Minor updates: +# 1. Edit ./manifest.sh to point to the updated URL. Upstream sometimes +# releases updates that include only the changed packages; in this case, +# multiple URLs can be provided and the results will be merged. +# 2. Run ./manifest.sh and ./dependencies.sh. +# 3. Build and enjoy. +# +# Major updates: +# We prefer not to immediately overwrite older versions with major updates, so +# make a copy of this directory first. After copying, be sure to delete ./tmp +# if it exists. Then follow the minor update instructions. + +{ autonix, kf56, pkgs, stdenv, debug ? false }: + +with stdenv.lib; with autonix; + +let + + kf5 = kf56.override { inherit debug; }; + + inherit (kf5) qt5; + + mirror = "mirror://kde"; + + renames = + builtins.removeAttrs + (import ./renames.nix {}) + ["Backend" "CTest"]; + + scope = + # packages in this collection + (mapAttrs (dep: name: plasma5."${name}") renames) // + # packages from KDE Frameworks 5 + kf5.scope // + # packages pinned to this version of Qt 5 + { + LibBlueDevil = pkgs.libbluedevil; + PolkitQt5-1 = pkgs.polkit_qt5.override { inherit qt5; }; + PopplerQt5 = (pkgs.poppler.override { inherit (kf5) qt5; }).poppler_qt5; + } // + # packages from nixpkgs + (with pkgs; + { + inherit epoxy; + Epub = ebook_tools; + Exiv2 = exiv2; + FFmpeg = ffmpeg; + FONTFORGE_EXECUTABLE = fontforge; + Freetype = freetype; + GTK2 = gtk2; + GTK3 = gtk3; + Libinput = libinput; + LibSSH = libssh; + ModemManager = modemmanager; + NetworkManager = networkmanager; + PulseAudio = pulseaudio; + Taglib = taglib; + USB = libusb; + Wayland = wayland; + Xapian = xapian; + } + ); + + preResolve = super: + fold (f: x: f x) super + [ + (userEnvPkg "SharedMimeInfo") + (userEnvPkg "SharedDesktopOntologies") + (blacklist ["bluedevil"]) + ]; + + postResolve = super: + (builtins.removeAttrs super ["breeze"]) // { + + breeze-qt4 = with pkgs; super.breeze // { + name = "breeze-qt4-" + (builtins.parseDrvName super.breeze.name).version; + buildInputs = [ xlibs.xproto kde4.kdelibs qt4 ]; + nativeBuildInputs = [ cmake pkgconfig ]; + cmakeFlags = + [ + "-DUSE_KDE4=ON" + "-DQT_QMAKE_EXECUTABLE=${qt4}/bin/qmake" + ]; + }; + + breeze-qt5 = with pkgs; super.breeze // { + name = "breeze-qt5-" + (builtins.parseDrvName super.breeze.name).version; + buildInputs = with kf5; with plasma5; + [ + kcompletion kconfig kconfigwidgets kcoreaddons kdecoration + frameworkintegration ki18n kwindowsystem qt5 + ]; + nativeBuildInputs = [ cmake kf5.extra-cmake-modules pkgconfig ]; + cmakeFlags = [ "-DUSE_KDE4=OFF" ]; + }; + + kde-gtk-config = with pkgs; super.kde-gtk-config // { + NIX_CFLAGS_COMPILE = + (super.kde-gtk-config.NIX_CFLAGS_COMPILE or "") + + " -I${cairo}/include/cairo" + + " -I${gtk2}/include/gtk-2.0 -I${gtk2}/lib/gtk-2.0/include" + + " -I${glib}/include/glib-2.0 -I${glib}/lib/glib-2.0/include" + + " -I${pango}/include/pango-1.0"; + }; + + kwin = with pkgs; super.kwin // { + buildInputs = with xlibs; + super.kwin.buildInputs ++ [ libICE libSM libXcursor ]; + patches = [ ./kwin/kwin-import-plugin-follow-symlinks.patch ]; + }; + + libkscreen = with pkgs; super.libkscreen // { + buildInputs = with xlibs; super.libkscreen.buildInputs ++ [libXrandr]; + }; + + plasma-desktop = with pkgs; super.plasma-desktop // { + buildInputs = with xlibs; + super.plasma-desktop.buildInputs ++ + [ pkgs.libcanberra libxkbfile libXcursor libXft ]; + patches = [ + ./plasma-desktop/plasma-desktop-hwclock.patch + ./plasma-desktop/plasma-desktop-zoneinfo.patch + ]; + preConfigure = '' + substituteInPlace kcms/dateandtime/helper.cpp \ + --subst-var-by hwclock "${utillinux}/sbin/hwclock" + ''; + enableParallelBuilding = false; + NIX_CFLAGS_COMPILE = + (super.plasma-desktop.NIX_CFLAGS_COMPILE or "") + + " -Wno-error=return-type"; + }; + + plasma-workspace = with pkgs; super.plasma-workspace // { + buildInputs = with xlibs; + super.plasma-workspace.buildInputs ++ [ libSM libXcursor pam ]; + postInstall = '' + # We use a custom startkde script + rm $out/bin/startkde + ''; + }; + + powerdevil = with pkgs; super.powerdevil // { + buildInputs = with xlibs; super.powerdevil.buildInputs ++ [libXrandr]; + }; + + sddm-kcm = with pkgs; super.sddm-kcm // { + buildInputs = with xlibs; super.sddm-kcm.buildInputs ++ [libXcursor]; + }; + + }; + + plasma5 = generateCollection ./. { + inherit (kf5) mkDerivation; + inherit mirror preResolve postResolve renames scope; + }; + +in + plasma5 // { + inherit scope; + startkde = pkgs.callPackage ./startkde { + inherit (kf5) kconfig kinit kservice; + inherit (plasma5) plasma-desktop plasma-workspace; + }; + } diff --git a/pkgs/desktops/plasma-5.2/dependencies.nix b/pkgs/desktops/plasma-5.2/dependencies.nix new file mode 100644 index 00000000000..74e519927d0 --- /dev/null +++ b/pkgs/desktops/plasma-5.2/dependencies.nix @@ -0,0 +1,284 @@ +# DO NOT EDIT! This file is generated automatically. +{ }: +{ + baloo = { + buildInputs = [ "ECM" "KF5" "KF5Auth" "KF5Config" "KF5Crash" "KF5FileMetaData" "KF5I18n" "KF5IdleTime" "KF5KDELibs4Support" "KF5KIO" "KF5Solid" "Qt5" "Xapian" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ "KF5CoreAddons" "KF5FileMetaData" "Qt5Core" "Xapian" ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + bluedevil = { + buildInputs = [ "ECM" "KF5" "KF5CoreAddons" "KF5DBusAddons" "KF5I18n" "KF5IconThemes" "KF5KIO" "KF5MODULE" "KF5Notifications" "KF5WidgetsAddons" "LibBlueDevil" "Qt5" "SharedMimeInfo" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ "SharedMimeInfo" ]; + }; + + breeze = { + buildInputs = [ "ECM" "KDE4" "KDecoration2" "KF5" "KF5Config" "KF5ConfigWidgets" "KF5CoreAddons" "KF5FrameworkIntegration" "KF5I18n" "KF5Service" "KF5WindowSystem" "PkgConfig" "Qt5" "XCB" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + kde-cli-tools = { + buildInputs = [ "ECM" "KF5" "KF5Config" "KF5I18n" "KF5IconThemes" "KF5KCMUtils" "KF5KDELibs4Support" "KF5Su" "KF5WindowSystem" "Qt5" "Qt5Test" "Qt5X11Extras" "X11" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + kde-gtk-config = { + buildInputs = [ "ECM" "GTK2" "GTK3" "KF5" "KF5Archive" "KF5ConfigWidgets" "KF5I18n" "KF5KCMUtils" "KF5NewStuff" "Qt5" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + kdecoration = { + buildInputs = [ "ECM" "Qt5" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ "Qt5Gui" ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + kdeplasma-addons = { + buildInputs = [ "ECM" "GIO" "GLIB2" "GObject" "IBus" "KDE4" "KF5" "KF5Config" "KF5ConfigWidgets" "KF5CoreAddons" "KF5I18n" "KF5KCMUtils" "KF5KDELibs4Support" "KF5KIO" "KF5Kross" "KF5Plasma" "KF5Runner" "KF5Service" "KF5UnitConversion" "KdepimLibs" "Kexiv2" "Lancelot" "Lancelot-Datamodels" "Qt5" "Qt5X11Extras" "SCIM" "SharedMimeInfo" "X11" "XCB" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ "SharedMimeInfo" ]; + }; + + kfilemetadata = { + buildInputs = [ "ECM" "EPub" "Exiv2" "FFmpeg" "KF5" "KF5Archive" "KF5I18n" "PopplerQt5" "QMobipocket" "Qt5" "Taglib" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ "Qt5Core" ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + khelpcenter = { + buildInputs = [ "ECM" "KF5" "KF5Config" "KF5I18n" "KF5Init" "KF5KCMUtils" "KF5KDELibs4Support" "KF5KHtml" "Qt5" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + khotkeys = { + buildInputs = [ "ECM" "KF5" "KF5DBusAddons" "KF5GlobalAccel" "KF5I18n" "KF5KCMUtils" "KF5KDELibs4Support" "KF5KIO" "KF5Plasma" "KF5XmlGui" "LibKWorkspace" "Qt5" "X11" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + kinfocenter = { + buildInputs = [ "ECM" "EGL" "KF5" "KF5Completion" "KF5Config" "KF5ConfigWidgets" "KF5CoreAddons" "KF5DBusAddons" "KF5DocTools" "KF5I18n" "KF5IconThemes" "KF5KCMUtils" "KF5KDELibs4Support" "KF5KIO" "KF5Service" "KF5Solid" "KF5Wayland" "KF5WidgetsAddons" "KF5XmlGui" "OpenGL" "OpenGLES" "PCIUTILS" "Qt5" "RAW1394" "X11" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + kio-extras = { + buildInputs = [ "ECM" "Exiv2" "JPEG" "KF5" "KF5Archive" "KF5Bookmarks" "KF5Config" "KF5ConfigWidgets" "KF5CoreAddons" "KF5DBusAddons" "KF5DNSSD" "KF5DocTools" "KF5GuiAddons" "KF5I18n" "KF5IconThemes" "KF5KDELibs4Support" "KF5KHtml" "KF5KIO" "KF5Pty" "KF5Solid" "LibSSH" "Mtp" "OpenEXR" "Phonon4Qt5" "Qt5" "Qt5Test" "SLP" "Samba" "SharedMimeInfo" ]; + nativeBuildInputs = [ "MD5SUM_EXECUTABLE" "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ "SharedMimeInfo" ]; + }; + + kmenuedit = { + buildInputs = [ "ECM" "KF5" "KF5DBusAddons" "KF5I18n" "KF5IconThemes" "KF5KDELibs4Support" "KF5KIO" "KF5Sonnet" "KF5XmlGui" "KHotKeysDBusInterface" "Qt5" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + kscreen = { + buildInputs = [ "ECM" "KF5" "KF5ConfigWidgets" "KF5DBusAddons" "KF5GlobalAccel" "KF5I18n" "KF5Screen" "KF5XmlGui" "Qt5" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + ksshaskpass = { + buildInputs = [ "ECM" "KF5" "KF5CoreAddons" "KF5DocTools" "KF5I18n" "KF5Wallet" "KF5WidgetsAddons" "Qt5" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + ksysguard = { + buildInputs = [ "ECM" "KF5" "KF5Config" "KF5CoreAddons" "KF5I18n" "KF5IconThemes" "KF5ItemViews" "KF5KDELibs4Support" "KF5NewStuff" "KF5SysGuard" "Qt5" "Sensors" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + kwayland = { + buildInputs = [ "ECM" "Qt5" "Qt5Concurrent" "Qt5Widgets" "Wayland" "WaylandScanner" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ "Qt5Gui" ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + kwin = { + buildInputs = [ "ECM" "EGL" "KDecoration2" "KF5" "KF5Activities" "KF5Completion" "KF5Config" "KF5ConfigWidgets" "KF5CoreAddons" "KF5Crash" "KF5Declarative" "KF5DocTools" "KF5GlobalAccel" "KF5I18n" "KF5Init" "KF5KCMUtils" "KF5KIO" "KF5NewStuff" "KF5Notifications" "KF5Plasma" "KF5Service" "KF5Wayland" "KF5WidgetsAddons" "KF5WindowSystem" "KF5XmlGui" "Libinput" "Qt5" "Qt5Multimedia" "Qt5Test" "UDev" "Wayland" "X11" "XCB" "XKB" "epoxy" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + kwrited = { + buildInputs = [ "ECM" "KF5" "KF5CoreAddons" "KF5DBusAddons" "KF5I18n" "KF5Notifications" "KF5Pty" "Qt5" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + libbluedevil = { + buildInputs = [ "Doxygen" "Qt5" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + libkscreen = { + buildInputs = [ "Doxygen" "ECM" "Qt5" "X11" "XCB" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ "Qt5Core" ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + libksysguard = { + buildInputs = [ "ECM" "KF5" "KF5Auth" "KF5Completion" "KF5Config" "KF5ConfigWidgets" "KF5CoreAddons" "KF5I18n" "KF5IconThemes" "KF5Plasma" "KF5Service" "KF5WidgetsAddons" "KF5WindowSystem" "Qt5" "Qt5WebKitWidgets" "Qt5X11Extras" "X11" "ZLIB" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ "KF5Config" "KF5I18n" "KF5IconThemes" "Qt5Core" "Qt5Network" "Qt5Widgets" ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + libmm-qt = { + buildInputs = [ "ECM" "KF5ModemManagerQt" "ModemManager" "Qt4" "Qt5" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ "Qt5Core" ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + milou = { + buildInputs = [ "ECM" "KF5" "KF5Declarative" "KF5I18n" "KF5Plasma" "KF5Runner" "KdepimLibs" "Qt5" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + muon = { + buildInputs = [ "AkabeiClient" "AppstreamQt" "BODEGA" "DebconfKDE" "ECM" "KF5" "KF5Attica" "KF5Config" "KF5ConfigWidgets" "KF5CoreAddons" "KF5DBusAddons" "KF5Declarative" "KF5I18n" "KF5KDELibs4Support" "KF5NewStuff" "KF5Notifications" "KF5Plasma" "KF5Solid" "KF5Wallet" "KF5WidgetsAddons" "Phonon4Qt5" "QApt" "Qca-qt5" "Qt5" "QtOAuth" "packagekitqt5" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + oxygen = { + buildInputs = [ "ECM" "KDE4" "KDE4Workspace" "KF5" "KF5Completion" "KF5Config" "KF5FrameworkIntegration" "KF5GuiAddons" "KF5I18n" "KF5Service" "KF5WidgetsAddons" "KF5WindowSystem" "PkgConfig" "Qt5" "XCB" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + oxygen-fonts = { + buildInputs = [ "ECM" ]; + nativeBuildInputs = [ "FONTFORGE_EXECUTABLE" "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + plasma-desktop = { + buildInputs = [ "Boost" "ECM" "Fontconfig" "Freetype" "GLIB2" "KDE4" "KF5" "KF5Activities" "KF5Attica" "KF5Auth" "KF5Baloo" "KF5DocTools" "KF5Emoticons" "KF5I18n" "KF5ItemModels" "KF5KCMUtils" "KF5KDELibs4Support" "KF5NewStuff" "KF5NotifyConfig" "KF5Plasma" "KF5PlasmaQuick" "KF5Runner" "KF5Wallet" "KRunnerAppDBusInterface" "KSMServerDBusInterface" "KWinDBusInterface" "LibKWorkspace" "LibTaskManager" "OpenGL" "OpenGLES" "PackageKitQt5" "Phonon4Qt5" "PulseAudio" "Qt4" "Qt5" "ScreenSaverDBusInterface" "Strigi" "USB" "X11" "XCB" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + plasma-nm = { + buildInputs = [ "ECM" "KF5" "KF5Completion" "KF5ConfigWidgets" "KF5CoreAddons" "KF5DBusAddons" "KF5Declarative" "KF5I18n" "KF5IconThemes" "KF5Init" "KF5ItemViews" "KF5KDELibs4Support" "KF5KIO" "KF5ModemManagerQt" "KF5NetworkManagerQt" "KF5Notifications" "KF5Plasma" "KF5Service" "KF5Solid" "KF5Wallet" "KF5WidgetsAddons" "KF5WindowSystem" "KF5XmlGui" "MobileBroadbandProviderInfo" "ModemManager" "NetworkManager" "OpenConnect" "OpenSSL" "Qt5" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + plasma-workspace = { + buildInputs = [ "ECM" "KF5" "KF5Activities" "KF5Baloo" "KF5Config" "KF5CoreAddons" "KF5Crash" "KF5DBusAddons" "KF5Declarative" "KF5DocTools" "KF5GlobalAccel" "KF5I18n" "KF5IdleTime" "KF5JsEmbed" "KF5KCMUtils" "KF5KDELibs4Support" "KF5KIO" "KF5NO_MODULE" "KF5NewStuff" "KF5NotifyConfig" "KF5Plasma" "KF5PlasmaQuick" "KF5Runner" "KF5Screen" "KF5Solid" "KF5Su" "KF5SysGuard" "KF5TextEditor" "KF5TextWidgets" "KF5Wallet" "KF5Wayland" "KF5WebKit" "KWinDBusInterface" "Phonon4Qt5" "Prison" "Qalculate" "Qt5" "Qt5DBus" "Qt5Qml" "Qt5Quick" "Qt5Script" "Qt5Test" "Qt5WebKitWidgets" "Wayland" "WaylandScanner" "X11" "XCB" "ZLIB" "dbusmenu-qt5" "libgps" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ "KF5KIO" "KF5SysGuard" ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + plasma-workspace-wallpapers = { + buildInputs = [ "ECM" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + polkit-kde-agent = { + buildInputs = [ "ECM" "KF5" "KF5Config" "KF5CoreAddons" "KF5Crash" "KF5DBusAddons" "KF5I18n" "KF5IconThemes" "KF5Notifications" "KF5WidgetsAddons" "KF5WindowSystem" "PolkitQt5-1" "Qt5" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + powerdevil = { + buildInputs = [ "ECM" "KF5" "KF5Auth" "KF5Config" "KF5GlobalAccel" "KF5I18n" "KF5IdleTime" "KF5KDELibs4Support" "KF5KIO" "KF5NotifyConfig" "KF5Solid" "LibKWorkspace" "Qt5" "ScreenSaverDBusInterface" "UDev" "X11" "XCB" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + sddm-kcm = { + buildInputs = [ "ECM" "KF5" "KF5Auth" "KF5ConfigWidgets" "KF5CoreAddons" "KF5I18n" "KF5KIO" "KF5XmlGui" "Qt5" "X11" "XCB" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + + systemsettings = { + buildInputs = [ "ECM" "KF5" "KF5Config" "KF5DBusAddons" "KF5DocTools" "KF5I18n" "KF5IconThemes" "KF5ItemViews" "KF5KCMUtils" "KF5KHtml" "KF5KIO" "KF5Service" "KF5WindowSystem" "KF5XmlGui" "Qt5" ]; + nativeBuildInputs = [ "cmake" ]; + propagatedBuildInputs = [ ]; + propagatedNativeBuildInputs = [ ]; + propagatedUserEnvPkgs = [ ]; + }; + +} diff --git a/pkgs/desktops/plasma-5.2/dependencies.sh b/pkgs/desktops/plasma-5.2/dependencies.sh new file mode 100755 index 00000000000..e614efc5475 --- /dev/null +++ b/pkgs/desktops/plasma-5.2/dependencies.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +# This script rebuilds dependencies.nix. +# You must run manifest.sh first to download the packages. + +# Without arguments, this will use the version of autonix-deps-kf5 in nixpkgs. +# If you are working on the packages, this is probably what you want. + +# You can also pass the path to a source tree where you have built +# autonix-deps-kf5 yourself. If you are working on autonix-deps-kf5, this is +# probably what you want. + +manifestXML=$(nix-build -E 'with (import ../../.. {}); autonix.writeManifestXML ./manifest.nix') + +autonixDepsKf5="" +if [[ -z $1 ]]; then + autonixDepsKF5=$(nix-build ../../.. -A haskellngPackages.autonix-deps-kf5)/bin +else + autonixDepsKF5="$1/dist/build/kf5-deps" +fi + +exec ${autonixDepsKF5}/kf5-deps "${manifestXML}" diff --git a/pkgs/desktops/plasma-5.2/kwin/kwin-import-plugin-follow-symlinks.patch b/pkgs/desktops/plasma-5.2/kwin/kwin-import-plugin-follow-symlinks.patch new file mode 100644 index 00000000000..fd1f35d717e --- /dev/null +++ b/pkgs/desktops/plasma-5.2/kwin/kwin-import-plugin-follow-symlinks.patch @@ -0,0 +1,13 @@ +diff --git a/clients/aurorae/src/aurorae.cpp b/clients/aurorae/src/aurorae.cpp +index 26b44a9..d14e226 100644 +--- a/clients/aurorae/src/aurorae.cpp ++++ b/clients/aurorae/src/aurorae.cpp +@@ -73,7 +73,7 @@ void AuroraeFactory::init() + // so let's try to locate our plugin: + QString pluginPath; + for (const QString &path : m_engine->importPathList()) { +- QDirIterator it(path, QDirIterator::Subdirectories); ++ QDirIterator it(path, QDirIterator::Subdirectories | QDirIterator::FollowSymlinks); + while (it.hasNext()) { + it.next(); + QFileInfo fileInfo = it.fileInfo(); diff --git a/pkgs/desktops/plasma-5.2/libkscreen/libkscreen-backend-path.patch b/pkgs/desktops/plasma-5.2/libkscreen/libkscreen-backend-path.patch new file mode 100644 index 00000000000..d5797924d23 --- /dev/null +++ b/pkgs/desktops/plasma-5.2/libkscreen/libkscreen-backend-path.patch @@ -0,0 +1,130 @@ +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index 460022f..422a708 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -1,5 +1,7 @@ + include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${QT_INCLUDES}) + ++configure_file(config-libkscreen.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-libkscreen.h) ++ + set(libkscreen_SRCS + backendloader.cpp + config.cpp +diff --git a/src/backendloader.cpp b/src/backendloader.cpp +index b93e469..8aebc14 100644 +--- a/src/backendloader.cpp ++++ b/src/backendloader.cpp +@@ -16,6 +16,7 @@ + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * + *************************************************************************************/ + ++#include "config-libkscreen.h" + #include "backendloader.h" + #include "debug_p.h" + #include "backends/abstractbackend.h" +@@ -40,55 +41,54 @@ bool BackendLoader::init() + const QString backend = qgetenv("KSCREEN_BACKEND").constData(); + const QString backendFilter = QString::fromLatin1("KSC_%1*").arg(backend); + +- const QStringList paths = QCoreApplication::libraryPaths(); +- Q_FOREACH (const QString &path, paths) { +- const QDir dir(path + QDir::separator() + QLatin1String("/kf5/kscreen/"), +- backendFilter, +- QDir::SortFlags(QDir::QDir::NoSort), +- QDir::NoDotAndDotDot | QDir::Files); +- const QFileInfoList finfos = dir.entryInfoList(); +- Q_FOREACH (const QFileInfo &finfo, finfos) { +- // Skip "Fake" backend unless explicitly specified via KSCREEN_BACKEND +- if (backend.isEmpty() && finfo.fileName().contains(QLatin1String("KSC_Fake"))) { +- continue; +- } ++ QString path = QFile::decodeName(CMAKE_INSTALL_PREFIX "/" PLUGIN_INSTALL_DIR "/"); + +- // When on X11, skip the QScreen backend, instead use the XRandR backend, +- // if not specified in KSCREEN_BACKEND +- if (backend.isEmpty() && +- finfo.fileName().contains(QLatin1String("KSC_QScreen")) && +- QX11Info::isPlatformX11()) { +- continue; +- } ++ const QDir dir(path + QDir::separator() + QLatin1String("/kf5/kscreen/"), ++ backendFilter, ++ QDir::SortFlags(QDir::QDir::NoSort), ++ QDir::NoDotAndDotDot | QDir::Files); ++ const QFileInfoList finfos = dir.entryInfoList(); ++ Q_FOREACH (const QFileInfo &finfo, finfos) { ++ // Skip "Fake" backend unless explicitly specified via KSCREEN_BACKEND ++ if (backend.isEmpty() && finfo.fileName().contains(QLatin1String("KSC_Fake"))) { ++ continue; ++ } + +- // When not on X11, skip the XRandR backend, and fall back to QSCreen +- // if not specified in KSCREEN_BACKEND +- if (backend.isEmpty() && +- finfo.fileName().contains(QLatin1String("KSC_XRandR")) && +- !QX11Info::isPlatformX11()) { +- continue; +- } ++ // When on X11, skip the QScreen backend, instead use the XRandR backend, ++ // if not specified in KSCREEN_BACKEND ++ if (backend.isEmpty() && ++ finfo.fileName().contains(QLatin1String("KSC_QScreen")) && ++ QX11Info::isPlatformX11()) { ++ continue; ++ } ++ ++ // When not on X11, skip the XRandR backend, and fall back to QSCreen ++ // if not specified in KSCREEN_BACKEND ++ if (backend.isEmpty() && ++ finfo.fileName().contains(QLatin1String("KSC_XRandR")) && ++ !QX11Info::isPlatformX11()) { ++ continue; ++ } + +- QPluginLoader loader(finfo.filePath()); +- loader.load(); +- QObject *instance = loader.instance(); +- if (!instance) { ++ QPluginLoader loader(finfo.filePath()); ++ loader.load(); ++ QObject *instance = loader.instance(); ++ if (!instance) { ++ loader.unload(); ++ continue; ++ } ++ ++ s_backend = qobject_cast< AbstractBackend* >(instance); ++ if (s_backend) { ++ if (!s_backend->isValid()) { ++ qCDebug(KSCREEN) << "Skipping" << s_backend->name() << "backend"; ++ delete s_backend; ++ s_backend = 0; + loader.unload(); + continue; + } +- +- s_backend = qobject_cast< AbstractBackend* >(instance); +- if (s_backend) { +- if (!s_backend->isValid()) { +- qCDebug(KSCREEN) << "Skipping" << s_backend->name() << "backend"; +- delete s_backend; +- s_backend = 0; +- loader.unload(); +- continue; +- } +- qCDebug(KSCREEN) << "Loading" << s_backend->name() << "backend"; +- return true; +- } ++ qCDebug(KSCREEN) << "Loading" << s_backend->name() << "backend"; ++ return true; + } + } + +diff --git a/src/config-libkscreen.h.cmake b/src/config-libkscreen.h.cmake +new file mode 100644 +index 0000000..a99f3d1 +--- /dev/null ++++ b/src/config-libkscreen.h.cmake +@@ -0,0 +1,2 @@ ++#define CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}" ++#define PLUGIN_INSTALL_DIR "${PLUGIN_INSTALL_DIR}" diff --git a/pkgs/desktops/plasma-5.2/manifest.nix b/pkgs/desktops/plasma-5.2/manifest.nix new file mode 100644 index 00000000000..5eb5d3ff78f --- /dev/null +++ b/pkgs/desktops/plasma-5.2/manifest.nix @@ -0,0 +1,214 @@ +# This file is generated automatically. DO NOT EDIT! +{ mirror }: +[ + { + url = "${mirror}/stable/plasma/5.2.0/ksshaskpass-5.2.0.tar.xz"; + sha256 = "17xjlb1gwxcdxzfadv0brr6ainnw25m681p013na182zigx9f9bv"; + name = "ksshaskpass-5.2.0.tar.xz"; + store = "/nix/store/gv341fwlrzw3svd2vr5b8wxcjk93r64v-ksshaskpass-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/kio-extras-5.2.0.tar.xz"; + sha256 = "1c5qhp6axzbn5mla9q6qk0aalm0n4hvs6c4d9pclbcv58ysv3vw5"; + name = "kio-extras-5.2.0.tar.xz"; + store = "/nix/store/iilra8kczb0waqigff390x2j2svkv5ba-kio-extras-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/kmenuedit-5.2.0.tar.xz"; + sha256 = "1qg7dh42lyp6mrckxjz07mmhk589d3wr080vljbm6hkgqm3aq7zr"; + name = "kmenuedit-5.2.0.tar.xz"; + store = "/nix/store/4qcwcvnyqnpa6b7my8aqrp6v2zadz91m-kmenuedit-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/libbluedevil-5.2.0.tar.xz"; + sha256 = "0s06kn9aqkyyfj1n6cb2hhnnqymwzljavfwj0f88mrkjrdf65bq9"; + name = "libbluedevil-5.2.0.tar.xz"; + store = "/nix/store/d7nkh5p51ab5ag94yi3ggxjpbwn2k6g3-libbluedevil-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/libkscreen-5.2.0.tar.xz"; + sha256 = "1v75qi7b0m8fqdj5b38ypwgp1djkg408a4csn57y3pjgp7k69k53"; + name = "libkscreen-5.2.0.tar.xz"; + store = "/nix/store/49pgxmxbn2qs5dzgf3iiwcaazj9ipiy3-libkscreen-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/kde-gtk-config-5.2.0.tar.xz"; + sha256 = "1gafqrb5sg6jm4g3kivnwax05lq6gilzg8pc8k6dsnchyqzilbki"; + name = "kde-gtk-config-5.2.0.tar.xz"; + store = "/nix/store/vf2cvrr4p7ydz36ir0cjd3p0yqa3cwpj-kde-gtk-config-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/kdeplasma-addons-5.2.0.tar.xz"; + sha256 = "168bl9g1s9piy0bwrx7f8pbvn3jamw1rp90rihydamm3s54p1ykw"; + name = "kdeplasma-addons-5.2.0.tar.xz"; + store = "/nix/store/4qgb1w08k6ffyipfwbrj19pgpihg3pk7-kdeplasma-addons-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/plasma-desktop-5.2.0.tar.xz"; + sha256 = "0xld7kxa8p78kw5f1a75nc0n69jn6vfp8nm40qqdhy2y3m5cc8p9"; + name = "plasma-desktop-5.2.0.tar.xz"; + store = "/nix/store/sjqqnbp8s802rz6ydn3if77hr57njwpk-plasma-desktop-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/systemsettings-5.2.0.tar.xz"; + sha256 = "0yk1zn0kkjb9rcmqa2n10igcnk2fm06gfn7fgb4mcb2vjvv7a8y0"; + name = "systemsettings-5.2.0.tar.xz"; + store = "/nix/store/b0pjfkpqsvfywawinn6a3q42r675q0gw-systemsettings-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/polkit-kde-agent-1-5.2.0.tar.xz"; + sha256 = "14b5z2ijlrv7h2bh6dxyd6r4qschzh1l2iqix63nbfa5nxyfc67q"; + name = "polkit-kde-agent-1-5.2.0.tar.xz"; + store = "/nix/store/ri0bgnblm2s7jsyvarvn0nrmnsgbv9wv-polkit-kde-agent-1-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/milou-5.2.0.tar.xz"; + sha256 = "02gd7012zbiaxhb6wliapfcb4spjrdgnhvhl3y64ixqrx2b032a5"; + name = "milou-5.2.0.tar.xz"; + store = "/nix/store/gsmn9sv15f7iwk8hbh074rnm03ig5yhi-milou-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/kinfocenter-5.2.0.tar.xz"; + sha256 = "151flq4w6m94jgfrzbf3w3v11xybx92xd0nv0bdh5vvaxg97dac9"; + name = "kinfocenter-5.2.0.tar.xz"; + store = "/nix/store/xfnj3gy03ynfaazy82gkxijm9fykwk4x-kinfocenter-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/kdecoration-5.2.0.tar.xz"; + sha256 = "135i1maqp0q9aa312l0dqfkmxjq12mri2zjwg03wzgmmy5b9wm52"; + name = "kdecoration-5.2.0.tar.xz"; + store = "/nix/store/dqqb6cvwcd43yanifka0kmx1pdhryjcj-kdecoration-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/kde-cli-tools-5.2.0.tar.xz"; + sha256 = "0lr3ir8kfq1x0yn0ahhlks0ikxxqbyj6jdmkdlr8hz5ivcpr64mq"; + name = "kde-cli-tools-5.2.0.tar.xz"; + store = "/nix/store/zfnbl0kbh4x3lpalc7irjgynl53mcf52-kde-cli-tools-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/kscreen-5.2.0.tar.xz"; + sha256 = "09f77vszpni93ahm31gsb7lg4lidchppa1kd9s8q98yf2rb9hl55"; + name = "kscreen-5.2.0.tar.xz"; + store = "/nix/store/w2gq2s7lgf637qn0f5a0dh06i7mkjhki-kscreen-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/plasma-workspace-wallpapers-5.2.0.tar.xz"; + sha256 = "1xb500w5y9jn6xyayw5v28qsy6xp0pfb3ydciga77h1xd59wp0ym"; + name = "plasma-workspace-wallpapers-5.2.0.tar.xz"; + store = "/nix/store/3rzwgwlzbmin9sjpp614bavjmrqqwk9x-plasma-workspace-wallpapers-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/sddm-kcm-5.2.0.tar.xz"; + sha256 = "0ds4qlgwzbpa32w3mlhf64p64n1jifm6797v6jb5v3qjnamlpk96"; + name = "sddm-kcm-5.2.0.tar.xz"; + store = "/nix/store/q3wbyymqnxwcv9c58fxc4fg2c6pc2d5r-sddm-kcm-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/libksysguard-5.2.0.tar.xz"; + sha256 = "0jfyy90zdajpxy5yy9w14n8r8jx7d6bdwss7h8rrkp5zljp9nzwp"; + name = "libksysguard-5.2.0.tar.xz"; + store = "/nix/store/n50iq06yz6z2n2n7wh10ww7cks22zz4z-libksysguard-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/oxygen-5.2.0.tar.xz"; + sha256 = "1wad5m36h31y99v4gwx19n3k14xxc0hvp9c4n3g67fyy8pjnr0ax"; + name = "oxygen-5.2.0.tar.xz"; + store = "/nix/store/60kb2hhwlmykfx5mc2s8hyd8zh6ngrpv-oxygen-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/khelpcenter-5.2.0.tar.xz"; + sha256 = "1a5z2bvxjdwp81jnyrdf7q591k6ql504argl7lg3pbvph08rc0rs"; + name = "khelpcenter-5.2.0.tar.xz"; + store = "/nix/store/dfi8w8dsk5cxbyhm5kznja6kxda23n8j-khelpcenter-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/baloo-5.6.0.tar.xz"; + sha256 = "1py0npkf8s46zwbg23cn49f777fc9cid1njg8crc8h71md71j614"; + name = "baloo-5.6.0.tar.xz"; + store = "/nix/store/sgm5dcgmw5cwz60hhhqnlgxq1ck1cffh-baloo-5.6.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/plasma-workspace-5.2.0.tar.xz"; + sha256 = "1swii172mv32837kgcxnmafs1blpgpdn6hda07f1aanaz4scxvj3"; + name = "plasma-workspace-5.2.0.tar.xz"; + store = "/nix/store/g2ar4zpsc36zalpd5frzdpxscgzg727b-plasma-workspace-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/kwrited-5.2.0.tar.xz"; + sha256 = "0rg1ml7m6f2kql4qi9pg8dd66hr7rxqgyjg3rs66diibz383cjzb"; + name = "kwrited-5.2.0.tar.xz"; + store = "/nix/store/r5qz9f2s7q0i00lsp86fv1b500cr2x0n-kwrited-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/libmm-qt-5.2.0.tar.xz"; + sha256 = "07flvspy3qs2mhjxnwy3l8giw296p3501ad1hr3bnjidm2iykc6s"; + name = "libmm-qt-5.2.0.tar.xz"; + store = "/nix/store/6fzkxwzqysgwjzmiyg16fdasp64gik52-libmm-qt-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/plasma-nm-5.2.0.tar.xz"; + sha256 = "0br2mqx8g660jcs1hiwssg6fdiddn4zk78kdmcgkpq93y5ysdf5c"; + name = "plasma-nm-5.2.0.tar.xz"; + store = "/nix/store/9n79gfai09ydrjf12ckqviqaf5jkwar8-plasma-nm-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/kwayland-5.2.0.tar.xz"; + sha256 = "1w872ask0w9gbw46dx3si124gmzkapj7naysgrb5zdcdf8avcgqy"; + name = "kwayland-5.2.0.tar.xz"; + store = "/nix/store/jidv4bi8f2iyg3zhdqip5f7lkwmgav94-kwayland-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/ksysguard-5.2.0.tar.xz"; + sha256 = "0kd103kzxgsgrrhfjacy50gg6wsvqa9ix9xk5nb59bbdzj0b4km1"; + name = "ksysguard-5.2.0.tar.xz"; + store = "/nix/store/s4xb576g8hjpl39ysbmzlsw19a99zssy-ksysguard-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/kfilemetadata-5.6.0.tar.xz"; + sha256 = "0vg9lc6d2q6bx53lixcmdhfgwqqr3hfl6g3pvgss237kd3fbb94n"; + name = "kfilemetadata-5.6.0.tar.xz"; + store = "/nix/store/rvjxs89p415z52nhzrmci6s91nb0fy5a-kfilemetadata-5.6.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/bluedevil-5.2.0.tar.xz"; + sha256 = "01a3h0jp9nq9fs1zv4wp7jgmpv4nscflb3nkz93dg0g1bis1kgnh"; + name = "bluedevil-5.2.0.tar.xz"; + store = "/nix/store/w4s1zfgmallmqq400pvh6zy9qrss6206-bluedevil-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/breeze-5.2.0.tar.xz"; + sha256 = "1s8381nhszb2d7b0r6rmngnkgw28xxsfhnginbcb6zkljgprnkkh"; + name = "breeze-5.2.0.tar.xz"; + store = "/nix/store/yyq50zwlb2xxahkb6w0zvz41rz2gg4k1-breeze-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/oxygen-fonts-5.2.0.tar.xz"; + sha256 = "102hycnk4naysmyj87mv1sm41aq214f3wjzzi429r0i135wdblki"; + name = "oxygen-fonts-5.2.0.tar.xz"; + store = "/nix/store/96is0p4rp0nqv9yllqrk9xhv4fa86gan-oxygen-fonts-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/powerdevil-5.2.0.tar.xz"; + sha256 = "1mi60xn4pgwrq4w3i45gxqjqqfwjxzkkyx89fkwwj1xv68bkwshs"; + name = "powerdevil-5.2.0.tar.xz"; + store = "/nix/store/lqny6rqbrgpadkm6d1s52i9959zwhjh8-powerdevil-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/muon-5.2.0.tar.xz"; + sha256 = "15vcrm7y5khpc0rngzqbhizg2w0rz6adf5v3cpwafmqaq3iqlcb7"; + name = "muon-5.2.0.tar.xz"; + store = "/nix/store/f7i8c6ig71506aqcmj3mp8yapyid5zki-muon-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/khotkeys-5.2.0.tar.xz"; + sha256 = "187757g70wjq1v9r7nf3fxc6233sb5m28s4aswlm7rjvys5lmkch"; + name = "khotkeys-5.2.0.tar.xz"; + store = "/nix/store/6sqh6vy8i8xg5xqh0b2ic1a3wb1nv2p8-khotkeys-5.2.0.tar.xz"; + } + { + url = "${mirror}/stable/plasma/5.2.0/kwin-5.2.0.tar.xz"; + sha256 = "0ys76xllgr2034bxpr5m1qm5v8qp8wnzn09f6gghcvnm3lqki79q"; + name = "kwin-5.2.0.tar.xz"; + store = "/nix/store/hrv9ikwphl3mg8sk6i8b9q3wj5ca24ni-kwin-5.2.0.tar.xz"; + } +] diff --git a/pkgs/desktops/plasma-5.2/manifest.sh b/pkgs/desktops/plasma-5.2/manifest.sh new file mode 100755 index 00000000000..6d0b6ef1452 --- /dev/null +++ b/pkgs/desktops/plasma-5.2/manifest.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +if [ $# -eq 0 ]; then + + # The extra slash at the end of the URL is necessary to stop wget + # from recursing over the whole server! (No, it's not a bug.) + $(nix-build ../../.. -A autonix.manifest) \ + http://download.kde.org/stable/plasma/5.2.0/ \ + -A '*.tar.xz' + +else + + $(nix-build ../../.. -A autonix.manifest) -A '*.tar.xz' "$@" + +fi diff --git a/pkgs/desktops/plasma-5.2/plasma-desktop/plasma-desktop-hwclock.patch b/pkgs/desktops/plasma-5.2/plasma-desktop/plasma-desktop-hwclock.patch new file mode 100644 index 00000000000..53bd43d38e2 --- /dev/null +++ b/pkgs/desktops/plasma-5.2/plasma-desktop/plasma-desktop-hwclock.patch @@ -0,0 +1,24 @@ +diff --git a/kcms/dateandtime/helper.cpp b/kcms/dateandtime/helper.cpp +index cec5ab8..fc4a6b9 100644 +--- a/kcms/dateandtime/helper.cpp ++++ b/kcms/dateandtime/helper.cpp +@@ -48,10 +48,6 @@ + #include + #endif + +-// We cannot rely on the $PATH environment variable, because D-Bus activation +-// clears it. So we have to use a reasonable default. +-static const QString exePath = QLatin1String("/usr/sbin:/usr/bin:/sbin:/bin"); +- + int ClockHelper::ntp( const QStringList& ntpServers, bool ntpEnabled ) + { + int ret = 0; +@@ -227,7 +223,7 @@ int ClockHelper::tzreset() + + void ClockHelper::toHwclock() + { +- QString hwclock = KStandardDirs::findExe("hwclock", exePath); ++ QString hwclock = "@hwclock@"; + if (!hwclock.isEmpty()) { + KProcess::execute(hwclock, QStringList() << "--systohc"); + } diff --git a/pkgs/desktops/plasma-5.2/plasma-desktop/plasma-desktop-zoneinfo.patch b/pkgs/desktops/plasma-5.2/plasma-desktop/plasma-desktop-zoneinfo.patch new file mode 100644 index 00000000000..e924207054d --- /dev/null +++ b/pkgs/desktops/plasma-5.2/plasma-desktop/plasma-desktop-zoneinfo.patch @@ -0,0 +1,18 @@ +diff --git a/kcms/dateandtime/helper.cpp b/kcms/dateandtime/helper.cpp +index fc4a6b9..7b64d05 100644 +--- a/kcms/dateandtime/helper.cpp ++++ b/kcms/dateandtime/helper.cpp +@@ -181,7 +181,12 @@ int ClockHelper::tz( const QString& selectedzone ) + + val = selectedzone; + #else +- QString tz = "/usr/share/zoneinfo/" + selectedzone; ++ // NixOS-specific path ++ QString tz = "/etc/zoneinfo/" + selectedzone; ++ if (!QFile::exists(tz)) { ++ // Standard Linux path ++ tz = "/usr/share/zoneinfo/" + selectedzone; ++ } + + if (QFile::exists(tz)) { // make sure the new TZ really exists + QFile::remove("/etc/localtime"); diff --git a/pkgs/desktops/plasma-5.2/renames.nix b/pkgs/desktops/plasma-5.2/renames.nix new file mode 100644 index 00000000000..5778a2bc819 --- /dev/null +++ b/pkgs/desktops/plasma-5.2/renames.nix @@ -0,0 +1,23 @@ +# DO NOT EDIT! This file is generated automatically. +{ }: +{ +"Backend" = "powerdevil"; +"CTest" = "kdeplasma-addons"; +"ECM" = "extra-cmake-modules"; +"KDecoration2" = "kdecoration"; +"KF5Baloo" = "baloo"; +"KF5FileMetaData" = "kfilemetadata"; +"KF5ModemManagerQt" = "libmm-qt"; +"KF5Screen" = "libkscreen"; +"KF5SysGuard" = "libksysguard"; +"KF5Wayland" = "kwayland"; +"KF5XmlRpcClientPrivate" = "plasma-workspace"; +"KHotKeysDBusInterface" = "khotkeys"; +"KRunnerAppDBusInterface" = "plasma-workspace"; +"KSMServerDBusInterface" = "plasma-workspace"; +"KWinDBusInterface" = "kwin"; +"LibKWorkspace" = "plasma-workspace"; +"LibTaskManager" = "plasma-workspace"; +"OxygenFont" = "oxygen-fonts"; +"ScreenSaverDBusInterface" = "plasma-workspace"; +} diff --git a/pkgs/desktops/plasma-5.2/setup-hook.sh b/pkgs/desktops/plasma-5.2/setup-hook.sh new file mode 100644 index 00000000000..a8d9b7e0e36 --- /dev/null +++ b/pkgs/desktops/plasma-5.2/setup-hook.sh @@ -0,0 +1 @@ +addToSearchPath XDG_DATA_DIRS @out@/share diff --git a/pkgs/desktops/plasma-5.2/startkde/default.nix b/pkgs/desktops/plasma-5.2/startkde/default.nix new file mode 100644 index 00000000000..6337769e1aa --- /dev/null +++ b/pkgs/desktops/plasma-5.2/startkde/default.nix @@ -0,0 +1,33 @@ +# We provide our own version of the startkde script in its entirety, rather than +# patching the version provided by kde-workspace, because it requires such +# extensive patching. + +{ stdenv, bash, dbus, gnused, gnugrep, kconfig, kinit, kservice, plasma-desktop +, plasma-workspace, qt5, socat, xorg }: + +let startkde = ./startkde.in; in + +stdenv.mkDerivation { + name = "startkde-0.1"; + phases = "installPhase"; + + inherit bash gnused gnugrep kconfig kinit kservice qt5 socat; + inherit (xorg) mkfontdir xmessage xprop xrdb xset xsetroot; + dbus_tools = dbus.tools; + plasmaWorkspace = plasma-workspace; + plasmaDesktop = plasma-desktop; + startupconfigkeys = ./startupconfigkeys; + kdeglobals = ./kdeglobals; + + installPhase = '' + mkdir -p $out/bin + substituteAll ${startkde} $out/bin/startkde + chmod +x $out/bin/startkde + ''; + + meta = { + description = "Custom startkde script for Nixpkgs"; + maintainers = with stdenv.lib.maintainers; [ ttuegel ]; + license = with stdenv.lib.licenses; [ gpl2Plus ]; + }; +} diff --git a/pkgs/desktops/plasma-5.2/startkde/kdeglobals b/pkgs/desktops/plasma-5.2/startkde/kdeglobals new file mode 100644 index 00000000000..bfa610712ed --- /dev/null +++ b/pkgs/desktops/plasma-5.2/startkde/kdeglobals @@ -0,0 +1,11 @@ +[General] +XftAntialias=true +XftHintStyle=hintmedium +XftSubPixel=none +desktopFont=Oxygen-Sans,10,-1,5,50,0,0,0,0,0 +fixed=Oxygen Mono,9,-1,5,50,0,0,0,0,0 +font=Oxygen-Sans,10,-1,5,50,0,0,0,0,0 +menuFont=Oxygen-Sans,10,-1,5,50,0,0,0,0,0 +smallestReadableFont=Oxygen-Sans,8,-1,5,50,0,0,0,0,0 +taskbarFont=Oxygen-Sans,10,-1,5,50,0,0,0,0,0 +toolBarFont=Oxygen-Sans,9,-1,5,50,0,0,0,0,0 \ No newline at end of file diff --git a/pkgs/desktops/plasma-5.2/startkde/startkde.in b/pkgs/desktops/plasma-5.2/startkde/startkde.in new file mode 100644 index 00000000000..ff67ed769e2 --- /dev/null +++ b/pkgs/desktops/plasma-5.2/startkde/startkde.in @@ -0,0 +1,382 @@ +#!@bash@/bin/bash -x +# +# NIXOS KDE STARTUP SCRIPT +# + +# The KDE icon cache is supposed to update itself +# automatically, but it uses the timestamp on the icon +# theme directory as a trigger. Since in Nix the +# timestamp is always the same, this doesn't work. So as +# a workaround, nuke the icon cache on login. This isn't +# perfect, since it may require logging out after +# installing new applications to update the cache. +# See http://lists-archives.org/kde-devel/26175-what-when-will-icon-cache-refresh.html +rm -fv $HOME/.cache/icon-cache.kcache + +# Qt writes a weird ‘libraryPath’ line to +# ~/.config/Trolltech.conf that causes the KDE plugin +# paths of previous KDE invocations to be searched. +# Obviously using mismatching KDE libraries is potentially +# disastrous, so here we nuke references to the Nix store +# in Trolltech.conf. A better solution would be to stop +# Qt from doing this wackiness in the first place. +if [ -e $HOME/.config/Trolltech.conf ]; then + @gnused@/bin/sed -e '/nix\\store\|nix\/store/ d' -i $HOME/.config/Trolltech.conf +fi + +if test "x$1" = x--failsafe; then + KDE_FAILSAFE=1 # General failsafe flag + KWIN_COMPOSE=N # Disable KWin's compositing + export KWIN_COMPOSE KDE_FAILSAFE +fi + +# When the X server dies we get a HUP signal from xinit. We must ignore it +# because we still need to do some cleanup. +trap 'echo GOT SIGHUP' HUP + +# we have to unset this for Darwin since it will screw up KDE's dynamic-loading +unset DYLD_FORCE_FLAT_NAMESPACE + +# Check if a KDE session already is running and whether it's possible to connect to X +@plasmaWorkspace@/bin/kcheckrunning +kcheckrunning_result=$? +if test $kcheckrunning_result -eq 0 ; then + @xmessage@/bin/xmessage -geometry 500x100 "KDE seems to be already running on this display." + exit 1 +elif test $kcheckrunning_result -eq 2 ; then + echo "\$DISPLAY is not set or cannot connect to the X server." + exit 1 +fi + +# Boot sequence: +# +# kdeinit is used to fork off processes which improves memory usage +# and startup time. +# +# * kdeinit starts klauncher first. +# * Then kded is started. kded is responsible for keeping the sycoca +# database up to date. When an up to date database is present it goes +# into the background and the startup continues. +# * Then kdeinit starts kcminit. kcminit performs initialisation of +# certain devices according to the user's settings +# +# * Then ksmserver is started which takes control of the rest of the startup sequence + +# We need to create config folder so we can write startupconfigkeys +if [ ${XDG_CONFIG_HOME} ]; then + configDir=$XDG_CONFIG_HOME; +else + # This is the default + # http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html + configDir=${HOME}/.config; +fi + +mkdir -p $configDir + +# This is basically setting defaults so we can use them with kstartupconfig5 +cat @startupconfigkeys@ >$configDir/startupconfigkeys + +# preload the user's locale on first start +plasmalocalerc=$configDir/plasma-localerc +test -f $plasmalocalerc || { +cat >$plasmalocalerc <$kdeglobalsfile + +@plasmaWorkspace@/bin/kstartupconfig5 +returncode=$? +if test $returncode -ne 0; then + @xmessage@/bin/xmessage -geometry 500x100 "kstartupconfig5 exited with $returncode" + exit 1 +fi +[ -r $configDir/startupconfig ] && . $configDir/startupconfig + +XCURSOR_PATH=~/.icons:$(echo "$XDG_DATA_DIRS" | tr ":" "\n" | @gnused@/bin/sed 's,$,/icons,g' | tr "\n" ":") +export XCURSOR_PATH + +# XCursor mouse theme needs to be applied here to work even for kded or ksmserver +if test -n "$kcminputrc_mouse_cursortheme" -o -n "$kcminputrc_mouse_cursorsize" ; then + + @plasmaDesktop@/bin/kapplymousetheme "$kcminputrc_mouse_cursortheme" "$kcminputrc_mouse_cursorsize" + if test $? -eq 10; then + XCURSOR_THEME=default + export XCURSOR_THEME + elif test -n "$kcminputrc_mouse_cursortheme"; then + XCURSOR_THEME="$kcminputrc_mouse_cursortheme" + export XCURSOR_THEME + fi + if test -n "$kcminputrc_mouse_cursorsize"; then + XCURSOR_SIZE="$kcminputrc_mouse_cursorsize" + export XCURSOR_SIZE + fi +fi + +# Set a left cursor instead of the standard X11 "X" cursor, since I've heard +# from some users that they're confused and don't know what to do. This is +# especially necessary on slow machines, where starting KDE takes one or two +# minutes until anything appears on the screen. +# +# If the user has overwritten fonts, the cursor font may be different now +# so don't move this up. +# +@xsetroot@/bin/xsetroot -cursor_name left_ptr + +dl=$DESKTOP_LOCKED +unset DESKTOP_LOCKED # Don't want it in the environment + +# Make sure that D-Bus is running +# D-Bus autolaunch is broken +if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then + eval `@dbus_tools@/bin/dbus-launch --sh-syntax --exit-with-session` +fi +if @qt5@/bin/qdbus >/dev/null 2>/dev/null; then + : # ok +else + echo 'startkde: Could not start D-Bus. Can you call qdbus?' 1>&2 + test -n "$ksplash_pid" && kill "$ksplash_pid" 2>/dev/null + @xmessage@/bin/xmessage -geometry 500x100 "Could not start D-Bus. Can you call qdbus?" + exit 1 +fi + +ksplash_pid= +if test -z "$dl"; then + # the splashscreen and progress indicator + case "$ksplashrc_ksplash_engine" in + KSplashQML) + ksplash_pid=`@plasmaWorkspace@/bin/ksplashqml "${ksplashrc_ksplash_theme}" --pid` + ;; + None) + ;; + *) + ;; + esac +fi + +# Source scripts found in /plasma-workspace/env/*.sh +# (where correspond to the system and user's configuration +# directories, as identified by Qt's qtpaths, e.g. $HOME/.config +# and /etc/xdg/ on Linux) +# +# This is where you can define environment variables that will be available to +# all KDE programs, so this is where you can run agents using e.g. eval `ssh-agent` +# or eval `gpg-agent --daemon`. +# Note: if you do that, you should also put "ssh-agent -k" as a shutdown script +# +# (see end of this file). +# For anything else (that doesn't set env vars, or that needs a window manager), +# better use the Autostart folder. + +# TODO: Use GenericConfigLocation once we depend on Qt 5.4 +scriptpath=`@qt5@/bin/qtpaths --paths ConfigLocation | tr ':' '\n' | @gnused@/bin/sed 's,$,/plasma-workspace,g'` + +# Add /env/ to the directory to locate the scripts to be sourced +for prefix in `echo $scriptpath`; do + for file in "$prefix"/env/*.sh; do + test -r "$file" && . "$file" + done +done + +# Set the path for Qt plugins provided by KDE +QT_PLUGIN_PATH=${QT_PLUGIN_PATH+$QT_PLUGIN_PATH:}`@qt5@/bin/qtpaths --plugin-dir` +# TODO: Do we really need this? +QT_PLUGIN_PATH=$QT_PLUGIN_PATH:$kdehome/lib/kde5/plugins/ +export QT_PLUGIN_PATH + +# Activate the kde font directories. +# +# There are 4 directories that may be used for supplying fonts for KDE. +# +# There are two system directories. These belong to the administrator. +# There are two user directories, where the user may add her own fonts. +# +# The 'override' versions are for fonts that should come first in the list, +# i.e. if you have a font in your 'override' directory, it will be used in +# preference to any other. +# +# The preference order looks like this: +# user override, system override, X, user, system +# +# Where X is the original font database that was set up before this script +# runs. + +usr_odir=$HOME/.fonts/kde-override +usr_fdir=$HOME/.fonts + +if test -n "$KDEDIRS"; then + kdedirs_first=`echo "$KDEDIRS" | @gnused@/bin/sed -e 's/:.*//'` + sys_odir=$kdedirs_first/share/fonts/override + sys_fdir=$kdedirs_first/share/fonts +else + sys_odir=$KDEDIR/share/fonts/override + sys_fdir=$KDEDIR/share/fonts +fi + +# We run mkfontdir on the user's font dirs (if we have permission) to pick +# up any new fonts they may have installed. If mkfontdir fails, we still +# add the user's dirs to the font path, as they might simply have been made +# read-only by the administrator, for whatever reason. + +test -d "$sys_odir" && @xset@/bin/xset +fp "$sys_odir" +test -d "$usr_odir" && ( @mkfontdir@/bin/mkfontdir "$usr_odir" ; @xset@/bin/xset +fp "$usr_odir" ) +test -d "$usr_fdir" && ( @mkfontdir@/bin/mkfontdir "$usr_fdir" ; @xset@/bin/xset fp+ "$usr_fdir" ) +test -d "$sys_fdir" && @xset@/bin/xset fp+ "$sys_fdir" + +# Ask X11 to rebuild its font list. +@xset@/bin/xset fp rehash + +# Get Ghostscript to look into user's KDE fonts dir for additional Fontmap +if test -n "$GS_LIB" ; then + GS_LIB=$usr_fdir:$GS_LIB + export GS_LIB +else + GS_LIB=$usr_fdir + export GS_LIB +fi + +echo 'startkde: Starting up...' 1>&2 + + +# Mark that full KDE session is running (e.g. Konqueror preloading works only +# with full KDE running). The KDE_FULL_SESSION property can be detected by +# any X client connected to the same X session, even if not launched +# directly from the KDE session but e.g. using "ssh -X", kdesu. $KDE_FULL_SESSION +# however guarantees that the application is launched in the same environment +# like the KDE session and that e.g. KDE utilities/libraries are available. +# KDE_FULL_SESSION property is also only available since KDE 3.5.5. +# The matching tests are: +# For $KDE_FULL_SESSION: +# if test -n "$KDE_FULL_SESSION"; then ... whatever +# For KDE_FULL_SESSION property: +# xprop -root | grep "^KDE_FULL_SESSION" >/dev/null 2>/dev/null +# if test $? -eq 0; then ... whatever +# +# Additionally there is (since KDE 3.5.7) $KDE_SESSION_UID with the uid +# of the user running the KDE session. It should be rarely needed (e.g. +# after sudo to prevent desktop-wide functionality in the new user's kded). +# +# Since KDE4 there is also KDE_SESSION_VERSION, containing the major version number. +# Note that this didn't exist in KDE3, which can be detected by its absense and +# the presence of KDE_FULL_SESSION. +# +KDE_FULL_SESSION=true +export KDE_FULL_SESSION +@xprop@/bin/xprop -root -f KDE_FULL_SESSION 8t -set KDE_FULL_SESSION true + +KDE_SESSION_VERSION=5 +export KDE_SESSION_VERSION +@xprop@/bin/xprop -root -f KDE_SESSION_VERSION 32c -set KDE_SESSION_VERSION 5 + +KDE_SESSION_UID=`id -ru` +export KDE_SESSION_UID + +XDG_CURRENT_DESKTOP=KDE +export XDG_CURRENT_DESKTOP + +# At this point all the environment is ready, let's send it to kwalletd if running +if test -n "$PAM_KWALLET_LOGIN" ; then + env | @socat@/bin/socat STDIN UNIX-CONNECT:$PAM_KWALLET_LOGIN +fi + +# At this point all environment variables are set, let's send it to the DBus +# session server to update the activation environment +@plasmaWorkspace@/lib/libexec/ksyncdbusenv +if test $? -ne 0; then + # Startup error + echo 'startkde: Could not sync environment to dbus.' 1>&2 + test -n "$ksplash_pid" && kill "$ksplash_pid" 2>/dev/null + @xmessage@/bin/xmessage -geometry 500x100 "Could not sync environment to dbus." + exit 1 +fi + +# We set LD_BIND_NOW to increase the efficiency of kdeinit. +# kdeinit unsets this variable before loading applications. +LD_BIND_NOW=true @kinit@/lib/libexec/kf5/start_kdeinit_wrapper --kded +kcminit_startup +if test $? -ne 0; then + # Startup error + echo 'startkde: Could not start kdeinit5.' 1>&2 + test -n "$ksplash_pid" && kill "$ksplash_pid" 2>/dev/null + @xmessage@/bin/xmessage -geometry 500x100 "Could not start kdeinit5." + exit 1 +fi + +# (NixOS) We run kbuildsycoca5 before starting the user session because things +# may be missing or moved if they have run nixos-rebuild and it may not be +# possible for them to start Konsole to run it manually! +@kservice@/bin/kbuildsycoca5 + +# finally, give the session control to the session manager +# see kdebase/ksmserver for the description of the rest of the startup sequence +# if the KDEWM environment variable has been set, then it will be used as KDE's +# window manager instead of kwin. +# if KDEWM is not set, ksmserver will ensure kwin is started. +# kwrapper5 is used to reduce startup time and memory usage +# kwrapper5 does not return useful error codes such as the exit code of ksmserver. +# We only check for 255 which means that the ksmserver process could not be +# started, any problems thereafter, e.g. ksmserver failing to initialize, +# will remain undetected. +test -n "$KDEWM" && KDEWM="--windowmanager $KDEWM" +# If the session should be locked from the start (locked autologin), +# lock now and do the rest of the KDE startup underneath the locker. +KSMSERVEROPTIONS="" +test -n "$dl" && KSMSERVEROPTIONS=" --lockscreen" +@kinit@/bin/kwrapper5 @plasmaWorkspace@/bin/ksmserver $KDEWM $KSMSERVEROPTIONS +if test $? -eq 255; then + # Startup error + echo 'startkde: Could not start ksmserver.' 1>&2 + test -n "$ksplash_pid" && kill "$ksplash_pid" 2>/dev/null + @xmessage@/bin/xmessage -geometry 500x100 "Could not start ksmserver." +fi + +wait_drkonqi=`@kconfig@/bin/kreadconfig5 --file startkderc --group WaitForDrKonqi --key Enabled --default true` + +if test x"$wait_drkonqi"x = x"true"x ; then + # wait for remaining drkonqi instances with timeout (in seconds) + wait_drkonqi_timeout=`@kconfig@/bin/kreadconfig5 --file startkderc --group WaitForDrKonqi --key Timeout --default 900` + wait_drkonqi_counter=0 + while @qt5@/bin/qdbus | @gnugrep@/bin/grep "^[^w]*org.kde.drkonqi" > /dev/null ; do + sleep 5 + wait_drkonqi_counter=$((wait_drkonqi_counter+5)) + if test "$wait_drkonqi_counter" -ge "$wait_drkonqi_timeout" ; then + # ask remaining drkonqis to die in a graceful way + @qt5@/bin/qdbus | @gnugrep@/bin/grep 'org.kde.drkonqi-' | while read address ; do + @qt5@/bin/qdbus "$address" "/MainApplication" "quit" + done + break + fi + done +fi + +echo 'startkde: Shutting down...' 1>&2 +# just in case +test -n "$ksplash_pid" && kill "$ksplash_pid" 2>/dev/null + +# Clean up +@kinit@/bin/kdeinit5_shutdown + +echo 'startkde: Running shutdown scripts...' 1>&2 + +# Run scripts found in /plasma-workspace/shutdown +for prefix in `echo "$scriptpath"`; do + for file in `ls "$prefix"/shutdown 2> /dev/null | @gnugrep@/bin/egrep -v '(~|\.bak)$'`; do + test -x "$prefix$file" && "$prefix$file" + done +done + +unset KDE_FULL_SESSION +@xprop@/bin/xprop -root -remove KDE_FULL_SESSION +unset KDE_SESSION_VERSION +@xprop@/bin/xprop -root -remove KDE_SESSION_VERSION +unset KDE_SESSION_UID + +echo 'startkde: Done.' 1>&2 diff --git a/pkgs/desktops/plasma-5.2/startkde/startupconfigkeys b/pkgs/desktops/plasma-5.2/startkde/startupconfigkeys new file mode 100644 index 00000000000..0fc92cff8a5 --- /dev/null +++ b/pkgs/desktops/plasma-5.2/startkde/startupconfigkeys @@ -0,0 +1,5 @@ +kcminputrc Mouse cursorTheme 'breeze_cursors' +kcminputrc Mouse cursorSize '' +ksplashrc KSplash Theme Breeze +ksplashrc KSplash Engine KSplashQML +kcmfonts General forceFontDPI 0 -- cgit 1.4.1