diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/misc/latte-dock')
-rw-r--r-- | nixpkgs/pkgs/applications/misc/latte-dock/0001-Disable-autostart.patch | 34 | ||||
-rw-r--r-- | nixpkgs/pkgs/applications/misc/latte-dock/default.nix | 40 |
2 files changed, 74 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/misc/latte-dock/0001-Disable-autostart.patch b/nixpkgs/pkgs/applications/misc/latte-dock/0001-Disable-autostart.patch new file mode 100644 index 000000000000..a639b465c92c --- /dev/null +++ b/nixpkgs/pkgs/applications/misc/latte-dock/0001-Disable-autostart.patch @@ -0,0 +1,34 @@ +From ad3f083de2dca2b2c5189430d33a78acfbd9d694 Mon Sep 17 00:00:00 2001 +From: Lana Black <lanablack@amok.cc> +Date: Wed, 8 Jun 2022 12:42:31 +0000 +Subject: [PATCH] Disable autostart. + +--- + app/settings/universalsettings.cpp | 11 ----------- + 1 file changed, 11 deletions(-) + +diff --git a/app/settings/universalsettings.cpp b/app/settings/universalsettings.cpp +index c95371db..4efd3ffe 100644 +--- a/app/settings/universalsettings.cpp ++++ b/app/settings/universalsettings.cpp +@@ -74,17 +74,6 @@ UniversalSettings::~UniversalSettings() + + void UniversalSettings::load() + { +- //! check if user has set the autostart option +- bool autostartUserSet = m_universalGroup.readEntry("userConfiguredAutostart", false); +- +- if (!autostartUserSet && !autostart()) { +- //! the first time the application is running and autostart is not set, autostart is enabled +- //! and from now own it will not be recreated in the beginning +- +- setAutostart(true); +- m_universalGroup.writeEntry("userConfiguredAutostart", true); +- } +- + //! init screen scales + m_screenScalesGroup = m_universalGroup.group("ScreenScales"); + +-- +2.36.1 + diff --git a/nixpkgs/pkgs/applications/misc/latte-dock/default.nix b/nixpkgs/pkgs/applications/misc/latte-dock/default.nix new file mode 100644 index 000000000000..6562cd7b4a29 --- /dev/null +++ b/nixpkgs/pkgs/applications/misc/latte-dock/default.nix @@ -0,0 +1,40 @@ +{ mkDerivation, lib, cmake, xorg, plasma-framework, plasma-wayland-protocols, fetchFromGitLab +, extra-cmake-modules, karchive, kwindowsystem, qtx11extras, qtwayland, kcrash, knewstuff +, wayland, plasma-workspace, plasma-desktop }: + +mkDerivation rec { + pname = "latte-dock"; + version = "unstable-2023-03-31"; + + src = fetchFromGitLab { + domain = "invent.kde.org"; + owner = "plasma"; + repo = "latte-dock"; + rev = "4f93251d8c635c6150483ecb321eb276f34d4280"; + sha256 = "sha256-oEfKfsVIAmYgQ7+WyBEQfVpI4IndWhYXWBsJE8bNNyI="; + }; + + buildInputs = [ plasma-framework plasma-wayland-protocols qtwayland xorg.libpthreadstubs xorg.libXdmcp xorg.libSM wayland plasma-workspace plasma-desktop ]; + + nativeBuildInputs = [ extra-cmake-modules cmake karchive kwindowsystem + qtx11extras kcrash knewstuff ]; + + patches = [ + ./0001-Disable-autostart.patch + ]; + + postInstall = '' + mkdir -p $out/etc/xdg/autostart + cp $out/share/applications/org.kde.latte-dock.desktop $out/etc/xdg/autostart + ''; + + meta = with lib; { + description = "Dock-style app launcher based on Plasma frameworks"; + homepage = "https://invent.kde.org/plasma/latte-dock"; + license = licenses.gpl2; + platforms = platforms.unix; + maintainers = [ maintainers.ysndr ]; + }; + + +} |