uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
49
pkgs/desktops/plasma-5/3rdparty/addons/bismuth/default.nix
vendored
Normal file
49
pkgs/desktops/plasma-5/3rdparty/addons/bismuth/default.nix
vendored
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ lib
|
||||
, mkDerivation
|
||||
, fetchFromGitHub
|
||||
, kcoreaddons
|
||||
, kwindowsystem
|
||||
, plasma-framework
|
||||
, systemsettings
|
||||
, cmake
|
||||
, extra-cmake-modules
|
||||
, esbuild
|
||||
}:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "bismuth";
|
||||
version = "3.1.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Bismuth-Forge";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-SGeqTmU603gKlzCUJ6AMaG7++9JvMw5EpSATwJEqNq8=";
|
||||
};
|
||||
|
||||
cmakeFlags = [
|
||||
"-DUSE_TSC=OFF"
|
||||
"-DUSE_NPM=OFF"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
extra-cmake-modules
|
||||
esbuild
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
kcoreaddons
|
||||
kwindowsystem
|
||||
plasma-framework
|
||||
systemsettings
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A dynamic tiling extension for KWin";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ pasqui23 ];
|
||||
homepage = "https://bismuth-forge.github.io/bismuth/";
|
||||
inherit (kwindowsystem.meta) platforms;
|
||||
};
|
||||
}
|
||||
32
pkgs/desktops/plasma-5/3rdparty/addons/caffeine-plus.nix
vendored
Normal file
32
pkgs/desktops/plasma-5/3rdparty/addons/caffeine-plus.nix
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ lib, mkDerivation, fetchFromGitHub, extra-cmake-modules
|
||||
, kwindowsystem, plasma-framework }:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "plasma-applet-caffeine-plus";
|
||||
version = "1.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "qunxyz";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-/Nz0kSDGok7GjqSQtjH/8q/u6blVTFPO6kfjEyt/jEo=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
kwindowsystem plasma-framework
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-Wno-dev"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Disable screensaver and auto suspend";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ peterhoeg ];
|
||||
inherit (src.meta) homepage;
|
||||
inherit (kwindowsystem.meta) platforms;
|
||||
};
|
||||
}
|
||||
43
pkgs/desktops/plasma-5/3rdparty/addons/krunner-ssh.nix
vendored
Normal file
43
pkgs/desktops/plasma-5/3rdparty/addons/krunner-ssh.nix
vendored
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ lib, stdenv, fetchFromGitLab, python3 }:
|
||||
let
|
||||
pythonEnv = python3.withPackages (p: with p; [ dbus-python pygobject3 ]);
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "krunner-ssh";
|
||||
version = "1.0";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "Programie";
|
||||
repo = "krunner-ssh";
|
||||
rev = version;
|
||||
sha256 = "sha256-rFTTvmetDeN6t0axVc+8t1TRiuyPBpwqhvsq2IFxa/A=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -e "s|Exec=.*|Exec=$out/libexec/runner.py|" -i ssh-runner.service
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
pythonEnv
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
patchShebangs runner.py
|
||||
|
||||
install -m 0755 -D runner.py $out/libexec/runner.py
|
||||
install -m 0755 -D ssh-runner.desktop $out/share/kservices5/ssh-runner.desktop
|
||||
install -m 0755 -D ssh-runner.service $out/share/dbus-1/services/com.selfcoders.ssh-runner.service
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple backend for KRunner providing SSH hosts from your .ssh/known_hosts file as search results";
|
||||
homepage = "https://selfcoders.com/projects/krunner-ssh";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ aanderse ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
40
pkgs/desktops/plasma-5/3rdparty/addons/krunner-symbols.nix
vendored
Normal file
40
pkgs/desktops/plasma-5/3rdparty/addons/krunner-symbols.nix
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib, stdenv
|
||||
, cmake, fetchFromGitHub, extra-cmake-modules
|
||||
, qtbase, wrapQtAppsHook, ki18n, kdelibs4support, krunner
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "krunner-symbols";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "domschrei";
|
||||
repo = "krunner-symbols";
|
||||
rev = version;
|
||||
sha256 = "sha256-YsoZdPTWpk3/YERwerrVEcaf2IfGVJwpq32onhP8Exo=";
|
||||
};
|
||||
|
||||
buildInputs = [ qtbase ki18n kdelibs4support krunner ];
|
||||
nativeBuildInputs = [ cmake wrapQtAppsHook extra-cmake-modules ];
|
||||
|
||||
postPatch = ''
|
||||
# symbols.cpp hardcodes the location of configuration files
|
||||
substituteInPlace symbols.cpp \
|
||||
--replace "/usr/share/config/krunner-symbol" "$out/share/config/krunner-symbol"
|
||||
|
||||
# change cmake flag names to output using the correct qt-plugin prefix and kservice location
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace "LOCATION_PLUGIN" "KDE_INSTALL_PLUGINDIR" \
|
||||
--replace "LOCATION_DESKTOP" "KDE_INSTALL_KSERVICES5DIR"
|
||||
'';
|
||||
|
||||
cmakeFlags = [ "-DLOCATION_CONFIG=share/config" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A little krunner plugin (Plasma 5) to retrieve unicode symbols, or any other string, based on a corresponding keyword";
|
||||
homepage = "https://github.com/domschrei/krunner-symbols";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ hqurve ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
40
pkgs/desktops/plasma-5/3rdparty/addons/virtual-desktop-bar.nix
vendored
Normal file
40
pkgs/desktops/plasma-5/3rdparty/addons/virtual-desktop-bar.nix
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib
|
||||
, mkDerivation
|
||||
, fetchFromGitHub
|
||||
, extra-cmake-modules
|
||||
, kwindowsystem
|
||||
, plasma-framework
|
||||
, qtx11extras
|
||||
}:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "plasma-applet-virtual-desktop-bar";
|
||||
version = "unstable-2021-02-20";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "wsdfhjxc";
|
||||
repo = "virtual-desktop-bar";
|
||||
rev = "3e9bbddb8def8da65071a1c325eaa06598e8a473";
|
||||
sha256 = "192ns6c2brzq46pg385n0v1ydbz52aaa8f5dgfw5251hrw9c7bxg";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
kwindowsystem plasma-framework qtx11extras
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
extra-cmake-modules
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-Wno-dev"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Manage virtual desktops dynamically in a convenient way";
|
||||
homepage = "https://github.com/wsdfhjxc/virtual-desktop-bar";
|
||||
license = licenses.gpl3Only;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ peterhoeg ];
|
||||
};
|
||||
}
|
||||
39
pkgs/desktops/plasma-5/3rdparty/kwin/scripts/dynamic-workspaces.nix
vendored
Normal file
39
pkgs/desktops/plasma-5/3rdparty/kwin/scripts/dynamic-workspaces.nix
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ lib, mkDerivation, fetchFromGitHub
|
||||
, kcoreaddons, kwindowsystem, plasma-framework, systemsettings }:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "dynamic_workspaces";
|
||||
version = "1.0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "d86leader";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1mnwh489i6l8z9s5a1zl7zybkw76pp9fdmmis41mym7r4wz4iznm";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
kcoreaddons kwindowsystem plasma-framework systemsettings
|
||||
];
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
# 1. --global still installs to $HOME/.local/share so we use --packageroot
|
||||
# 2. plasmapkg2 doesn't copy metadata.desktop into place, so we do that manually
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
plasmapkg2 --type kwinscript --install ${src} --packageroot $out/share/kwin/scripts
|
||||
install -Dm644 ${src}/metadata.desktop $out/share/kservices5/dynamic_workspaces.desktop
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "KWin script that automatically adds/removes virtual desktops";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ ];
|
||||
inherit (src.meta) homepage;
|
||||
inherit (kwindowsystem.meta) platforms;
|
||||
};
|
||||
}
|
||||
39
pkgs/desktops/plasma-5/3rdparty/kwin/scripts/krohnkite.nix
vendored
Normal file
39
pkgs/desktops/plasma-5/3rdparty/kwin/scripts/krohnkite.nix
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ lib, mkDerivation, fetchFromGitHub
|
||||
, kcoreaddons, kwindowsystem, plasma-framework, systemsettings }:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "krohnkite";
|
||||
version = "0.8.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "esjeon";
|
||||
repo = "krohnkite";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-HZCD5884pHuHey+d+HRx/F/Sp1b6ZUy7MdqqZ08H0lU=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
kcoreaddons kwindowsystem plasma-framework systemsettings
|
||||
];
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
# 1. --global still installs to $HOME/.local/share so we use --packageroot
|
||||
# 2. plasmapkg2 doesn't copy metadata.desktop into place, so we do that manually
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
plasmapkg2 --type kwinscript --install ${src}/res/ --packageroot $out/share/kwin/scripts
|
||||
install -Dm644 ${src}/res/metadata.desktop $out/share/kservices5/krohnkite.desktop
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A dynamic tiling extension for KWin";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ seqizz ];
|
||||
inherit (src.meta) homepage;
|
||||
inherit (kwindowsystem.meta) platforms;
|
||||
};
|
||||
}
|
||||
37
pkgs/desktops/plasma-5/3rdparty/kwin/scripts/parachute.nix
vendored
Normal file
37
pkgs/desktops/plasma-5/3rdparty/kwin/scripts/parachute.nix
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ lib, mkDerivation, fetchFromGitHub
|
||||
, kcoreaddons, kwindowsystem, plasma-framework, systemsettings }:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "parachute";
|
||||
version = "0.9.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tcorreabr";
|
||||
repo = "parachute";
|
||||
rev = "v${version}";
|
||||
sha256 = "QIWb1zIGfkS+Bef7LK+JA6XpwGUW+79XZY47j75nlCE=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
kcoreaddons kwindowsystem plasma-framework systemsettings
|
||||
];
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
# 1. --global still installs to $HOME/.local/share so we use --packageroot
|
||||
# 2. plasmapkg2 doesn't copy metadata.desktop into place, so we do that manually
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
plasmapkg2 --type kwinscript --install ${src} --packageroot $out/share/kwin/scripts
|
||||
install -Dm644 ${src}/metadata.desktop $out/share/kservices5/Parachute.desktop
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Look at your windows and desktops from above.";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ ];
|
||||
inherit (src.meta) homepage;
|
||||
inherit (kwindowsystem.meta) platforms;
|
||||
};
|
||||
}
|
||||
44
pkgs/desktops/plasma-5/3rdparty/kwin/scripts/tiling.nix
vendored
Normal file
44
pkgs/desktops/plasma-5/3rdparty/kwin/scripts/tiling.nix
vendored
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ lib, mkDerivation, fetchFromGitHub
|
||||
, kcoreaddons, kwindowsystem, plasma-framework, systemsettings }:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "kwin-tiling";
|
||||
version = "2.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kwin-scripts";
|
||||
repo = "kwin-tiling";
|
||||
rev = "v${version}";
|
||||
sha256 = "095slpvipy0zcmbn0l7mdnl9g74jaafkr2gqi09b0by5fkvnbh37";
|
||||
};
|
||||
|
||||
# This is technically not needed, but we might as well clean up
|
||||
postPatch = ''
|
||||
rm release.sh
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
kcoreaddons kwindowsystem plasma-framework systemsettings
|
||||
];
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
# 1. --global still installs to $HOME/.local/share so we use --packageroot
|
||||
# 2. plasmapkg2 doesn't copy metadata.desktop into place, so we do that manually
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
plasmapkg2 --type kwinscript --install ${src} --packageroot $out/share/kwin/scripts
|
||||
install -Dm644 ${src}/metadata.desktop $out/share/kservices5/kwin-script-tiling.desktop
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tiling script for kwin";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ peterhoeg ];
|
||||
inherit (src.meta) homepage;
|
||||
inherit (kwindowsystem.meta) platforms;
|
||||
};
|
||||
}
|
||||
46
pkgs/desktops/plasma-5/3rdparty/lightly/default.nix
vendored
Normal file
46
pkgs/desktops/plasma-5/3rdparty/lightly/default.nix
vendored
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ lib
|
||||
, mkDerivation
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, extra-cmake-modules
|
||||
, kdecoration
|
||||
, kcoreaddons
|
||||
, kguiaddons
|
||||
, kconfigwidgets
|
||||
, kwindowsystem
|
||||
, kiconthemes
|
||||
, qtx11extras
|
||||
}:
|
||||
|
||||
mkDerivation rec{
|
||||
pname = "lightly";
|
||||
version = "0.4.1";
|
||||
src = fetchFromGitHub {
|
||||
owner = "Luwx";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "k1fEZbhzluNlAmj5s/O9X20aCVQxlWQm/Iw/euX7cmI=";
|
||||
};
|
||||
|
||||
extraCmakeFlags=["-DBUILD_TESTING=OFF"];
|
||||
|
||||
nativeBuildInputs = [ cmake extra-cmake-modules ];
|
||||
|
||||
buildInputs = [
|
||||
kcoreaddons
|
||||
kguiaddons
|
||||
kconfigwidgets
|
||||
kwindowsystem
|
||||
kiconthemes
|
||||
qtx11extras
|
||||
kdecoration
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A modern style for qt applications";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ pasqui23 ];
|
||||
homepage = "https://github.com/Luwx/Lightly/";
|
||||
inherit (kwindowsystem.meta) platforms;
|
||||
};
|
||||
}
|
||||
16
pkgs/desktops/plasma-5/bluedevil.nix
Normal file
16
pkgs/desktops/plasma-5/bluedevil.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
mkDerivation, lib, extra-cmake-modules, shared-mime-info,
|
||||
qtbase, qtdeclarative, bluez-qt,
|
||||
kcoreaddons, kdbusaddons, kded, ki18n, kiconthemes, kio, knotifications,
|
||||
kwidgetsaddons, kwindowsystem, plasma-framework
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "bluedevil";
|
||||
nativeBuildInputs = [ extra-cmake-modules shared-mime-info ];
|
||||
buildInputs = [
|
||||
qtbase qtdeclarative bluez-qt
|
||||
ki18n kio kwindowsystem plasma-framework kcoreaddons kdbusaddons kded
|
||||
kiconthemes knotifications kwidgetsaddons
|
||||
];
|
||||
}
|
||||
15
pkgs/desktops/plasma-5/breeze-grub.nix
Normal file
15
pkgs/desktops/plasma-5/breeze-grub.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
mkDerivation
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "breeze-grub";
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p "$out/grub/themes"
|
||||
mv breeze "$out/grub/themes"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
||||
17
pkgs/desktops/plasma-5/breeze-gtk.nix
Normal file
17
pkgs/desktops/plasma-5/breeze-gtk.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ mkDerivation, lib, extra-cmake-modules, gtk2, qtbase, sassc, python3, breeze-qt5 }:
|
||||
|
||||
let inherit (lib) getLib; in
|
||||
|
||||
mkDerivation {
|
||||
pname = "breeze-gtk";
|
||||
nativeBuildInputs = [ extra-cmake-modules sassc python3 python3.pkgs.pycairo breeze-qt5 ];
|
||||
buildInputs = [ qtbase ];
|
||||
patches = [
|
||||
./patches/0001-fix-add-executable-bit.patch
|
||||
];
|
||||
postPatch = ''
|
||||
sed -i cmake/FindGTKEngine.cmake \
|
||||
-e "s|\''${KDE_INSTALL_FULL_LIBDIR}|${getLib gtk2}/lib|"
|
||||
'';
|
||||
cmakeFlags = [ "-DWITH_GTK3_VERSION=3.22" ];
|
||||
}
|
||||
50
pkgs/desktops/plasma-5/breeze-plymouth/default.nix
Normal file
50
pkgs/desktops/plasma-5/breeze-plymouth/default.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{
|
||||
mkDerivation,
|
||||
lib,
|
||||
extra-cmake-modules,
|
||||
plymouth,
|
||||
nixos-icons,
|
||||
imagemagick,
|
||||
netpbm,
|
||||
perl,
|
||||
logoName ? null,
|
||||
logoFile ? null,
|
||||
osName ? null,
|
||||
osVersion ? null,
|
||||
topColor ? "black",
|
||||
bottomColor ? "black"
|
||||
}:
|
||||
|
||||
let
|
||||
validColors = [ "black" "cardboard_grey" "charcoal_grey" "icon_blue" "paper_white" "plasma_blue" "neon_blue" "neon_green" ];
|
||||
resolvedLogoName = if (logoFile != null && logoName == null) then lib.strings.removeSuffix ".png" (baseNameOf(toString logoFile)) else logoName;
|
||||
in
|
||||
assert lib.asserts.assertOneOf "topColor" topColor validColors;
|
||||
assert lib.asserts.assertOneOf "bottomColor" bottomColor validColors;
|
||||
|
||||
|
||||
mkDerivation {
|
||||
pname = "breeze-plymouth";
|
||||
nativeBuildInputs = [ extra-cmake-modules ] ++ lib.optionals (logoFile != null) [ imagemagick netpbm perl ];
|
||||
buildInputs = [ plymouth ];
|
||||
patches = [
|
||||
./install-paths.patch
|
||||
];
|
||||
cmakeFlags = []
|
||||
++ lib.optional (osName != null) "-DDISTRO_NAME=${osName}"
|
||||
++ lib.optional (osVersion != null) "-DDISTRO_VERSION=${osVersion}"
|
||||
++ lib.optional (logoName != null) "-DDISTRO_LOGO=${logoName}"
|
||||
++ lib.optional (topColor != null) "-DBACKGROUND_TOP_COLOR=${topColor}"
|
||||
++ lib.optional (bottomColor != null) "-DBACKGROUND_BOTTOM_COLOR=${bottomColor}"
|
||||
;
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace cmake/FindPlymouth.cmake --subst-var out
|
||||
'' + lib.optionalString (logoFile != null) ''
|
||||
cp ${logoFile} breeze/images/${resolvedLogoName}.logo.png
|
||||
|
||||
# conversion for 16bit taken from the breeze-plymouth readme
|
||||
convert ${logoFile} -alpha Background -background "#000000" -fill "#000000" -flatten tmp.png
|
||||
pngtopnm tmp.png | pnmquant 16 | pnmtopng > breeze/images/16bit/${resolvedLogoName}.logo.png
|
||||
'';
|
||||
}
|
||||
19
pkgs/desktops/plasma-5/breeze-plymouth/install-paths.patch
Normal file
19
pkgs/desktops/plasma-5/breeze-plymouth/install-paths.patch
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
Index: breeze-plymouth-5.7.3/cmake/FindPlymouth.cmake
|
||||
===================================================================
|
||||
--- breeze-plymouth-5.7.3.orig/cmake/FindPlymouth.cmake
|
||||
+++ breeze-plymouth-5.7.3/cmake/FindPlymouth.cmake
|
||||
@@ -24,12 +24,8 @@
|
||||
include(FindPkgConfig)
|
||||
|
||||
pkg_check_modules(Plymouth ply-boot-client ply-splash-core)
|
||||
-exec_program(${PKG_CONFIG_EXECUTABLE}
|
||||
- ARGS ply-splash-core --variable=pluginsdir
|
||||
- OUTPUT_VARIABLE Plymouth_PLUGINSDIR)
|
||||
-exec_program(${PKG_CONFIG_EXECUTABLE}
|
||||
- ARGS ply-splash-core --variable=themesdir
|
||||
- OUTPUT_VARIABLE Plymouth_THEMESDIR)
|
||||
+set(Plymouth_PLUGINSDIR "@out@/lib/plymouth")
|
||||
+set(Plymouth_THEMESDIR "@out@/share/plymouth/themes")
|
||||
|
||||
find_package_handle_standard_args(Plymouth
|
||||
FOUND_VAR
|
||||
20
pkgs/desktops/plasma-5/breeze-qt5.nix
Normal file
20
pkgs/desktops/plasma-5/breeze-qt5.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
frameworkintegration, kcmutils, kconfigwidgets, kcoreaddons, kdecoration,
|
||||
kguiaddons, ki18n, kwayland, kwindowsystem, plasma-framework, qtdeclarative,
|
||||
qtx11extras, fftw
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "breeze-qt5";
|
||||
sname = "breeze";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
propagatedBuildInputs = [
|
||||
frameworkintegration kcmutils kconfigwidgets kcoreaddons kdecoration
|
||||
kguiaddons ki18n kwayland kwindowsystem plasma-framework qtdeclarative
|
||||
qtx11extras fftw
|
||||
];
|
||||
outputs = [ "bin" "dev" "out" ];
|
||||
cmakeFlags = [ "-DUSE_Qt4=OFF" ];
|
||||
}
|
||||
174
pkgs/desktops/plasma-5/default.nix
Normal file
174
pkgs/desktops/plasma-5/default.nix
Normal file
|
|
@ -0,0 +1,174 @@
|
|||
/*
|
||||
|
||||
# New packages
|
||||
|
||||
READ THIS FIRST
|
||||
|
||||
This module is for official packages in KDE Plasma 5. All available packages are
|
||||
listed in `./srcs.nix`, although a few are not yet packaged in Nixpkgs (see
|
||||
below).
|
||||
|
||||
IF YOUR PACKAGE IS NOT LISTED IN `./srcs.nix`, IT DOES NOT GO HERE.
|
||||
|
||||
Many of the packages released upstream are not yet built in Nixpkgs due to lack
|
||||
of demand. To add a Nixpkgs build for an upstream package, copy one of the
|
||||
existing packages here and modify it as necessary.
|
||||
|
||||
# Updates
|
||||
|
||||
1. Update the URL in `./fetch.sh`.
|
||||
2. Run `./maintainers/scripts/fetch-kde-qt.sh pkgs/desktops/plasma-5`
|
||||
from the top of the Nixpkgs tree.
|
||||
3. Use `nox-review wip` to check that everything builds.
|
||||
4. Commit the changes and open a pull request.
|
||||
|
||||
*/
|
||||
|
||||
{ libsForQt5, lib, config, fetchurl
|
||||
, gconf, gsettings-desktop-schemas
|
||||
}:
|
||||
|
||||
let
|
||||
minQtVersion = "5.15";
|
||||
broken = lib.versionOlder libsForQt5.qtbase.version minQtVersion;
|
||||
maintainers = with lib.maintainers; [ ttuegel nyanloutre ];
|
||||
license = with lib.licenses; [
|
||||
lgpl21Plus lgpl3Plus bsd2 mit gpl2Plus gpl3Plus fdl12
|
||||
];
|
||||
|
||||
srcs = import ./srcs.nix {
|
||||
inherit fetchurl;
|
||||
mirror = "mirror://kde";
|
||||
};
|
||||
|
||||
mkDerivation = libsForQt5.callPackage ({ mkDerivation }: mkDerivation) {};
|
||||
|
||||
packages = self: with self;
|
||||
let
|
||||
|
||||
propagate = out:
|
||||
let setupHook = { writeScript }:
|
||||
writeScript "setup-hook" ''
|
||||
if [[ "''${hookName-}" != postHook ]]; then
|
||||
postHooks+=("source @dev@/nix-support/setup-hook")
|
||||
else
|
||||
# Propagate $${out} output
|
||||
propagatedUserEnvPkgs+=" @${out}@"
|
||||
|
||||
if [ -z "$outputDev" ]; then
|
||||
echo "error: \$outputDev is unset!" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Propagate $dev so that this setup hook is propagated
|
||||
# But only if there is a separate $dev output
|
||||
if [ "$outputDev" != out ]; then
|
||||
propagatedBuildInputs+=" @dev@"
|
||||
fi
|
||||
fi
|
||||
'';
|
||||
in callPackage setupHook {};
|
||||
|
||||
propagateBin = propagate "bin";
|
||||
|
||||
callPackage = self.newScope {
|
||||
inherit propagate propagateBin;
|
||||
|
||||
mkDerivation = args:
|
||||
let
|
||||
inherit (args) pname;
|
||||
sname = args.sname or pname;
|
||||
inherit (srcs.${sname}) src version;
|
||||
|
||||
outputs = args.outputs or [ "out" ];
|
||||
hasBin = lib.elem "bin" outputs;
|
||||
hasDev = lib.elem "dev" outputs;
|
||||
|
||||
defaultSetupHook = if hasBin && hasDev then propagateBin else null;
|
||||
setupHook = args.setupHook or defaultSetupHook;
|
||||
|
||||
meta =
|
||||
let meta = args.meta or {}; in
|
||||
meta // {
|
||||
homepage = meta.homepage or "http://www.kde.org";
|
||||
license = meta.license or license;
|
||||
maintainers = (meta.maintainers or []) ++ maintainers;
|
||||
platforms = meta.platforms or lib.platforms.linux;
|
||||
broken = meta.broken or broken;
|
||||
};
|
||||
in
|
||||
mkDerivation (args // {
|
||||
inherit pname version meta outputs setupHook src;
|
||||
});
|
||||
};
|
||||
|
||||
in {
|
||||
bluedevil = callPackage ./bluedevil.nix {};
|
||||
breeze-gtk = callPackage ./breeze-gtk.nix {};
|
||||
breeze-qt5 = callPackage ./breeze-qt5.nix {};
|
||||
breeze-grub = callPackage ./breeze-grub.nix {};
|
||||
breeze-plymouth = callPackage ./breeze-plymouth {};
|
||||
discover = callPackage ./discover.nix {};
|
||||
kactivitymanagerd = callPackage ./kactivitymanagerd.nix {};
|
||||
kde-cli-tools = callPackage ./kde-cli-tools.nix {};
|
||||
kde-gtk-config = callPackage ./kde-gtk-config { inherit gsettings-desktop-schemas; };
|
||||
kdecoration = callPackage ./kdecoration.nix {};
|
||||
kdeplasma-addons = callPackage ./kdeplasma-addons.nix {};
|
||||
kgamma5 = callPackage ./kgamma5.nix {};
|
||||
khotkeys = callPackage ./khotkeys.nix {};
|
||||
kinfocenter = callPackage ./kinfocenter.nix {};
|
||||
kmenuedit = callPackage ./kmenuedit.nix {};
|
||||
kscreen = callPackage ./kscreen.nix {};
|
||||
kscreenlocker = callPackage ./kscreenlocker.nix {};
|
||||
ksshaskpass = callPackage ./ksshaskpass.nix {};
|
||||
ksystemstats = callPackage ./ksystemstats.nix {};
|
||||
kwallet-pam = callPackage ./kwallet-pam.nix {};
|
||||
kwayland-integration = callPackage ./kwayland-integration.nix {};
|
||||
kwayland-server = callPackage ./kwayland-server {};
|
||||
kwin = callPackage ./kwin {};
|
||||
kwrited = callPackage ./kwrited.nix {};
|
||||
layer-shell-qt = callPackage ./layer-shell-qt.nix {};
|
||||
libkscreen = callPackage ./libkscreen {};
|
||||
libksysguard = callPackage ./libksysguard {};
|
||||
milou = callPackage ./milou.nix {};
|
||||
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-mobile = callPackage ./plasma-mobile {};
|
||||
plasma-nano = callPackage ./plasma-nano {};
|
||||
plasma-nm = callPackage ./plasma-nm {};
|
||||
plasma-pa = callPackage ./plasma-pa.nix { inherit gconf; };
|
||||
plasma-sdk = callPackage ./plasma-sdk.nix {};
|
||||
plasma-systemmonitor = callPackage ./plasma-systemmonitor.nix { };
|
||||
plasma-thunderbolt = callPackage ./plasma-thunderbolt.nix { };
|
||||
plasma-vault = callPackage ./plasma-vault {};
|
||||
plasma-workspace = callPackage ./plasma-workspace {};
|
||||
plasma-workspace-wallpapers = callPackage ./plasma-workspace-wallpapers.nix {};
|
||||
polkit-kde-agent = callPackage ./polkit-kde-agent.nix {};
|
||||
powerdevil = callPackage ./powerdevil.nix {};
|
||||
qqc2-breeze-style = callPackage ./qqc2-breeze-style.nix {};
|
||||
sddm-kcm = callPackage ./sddm-kcm.nix {};
|
||||
systemsettings = callPackage ./systemsettings.nix {};
|
||||
xdg-desktop-portal-kde = callPackage ./xdg-desktop-portal-kde.nix {};
|
||||
|
||||
thirdParty = let inherit (libsForQt5) callPackage; in {
|
||||
plasma-applet-caffeine-plus = callPackage ./3rdparty/addons/caffeine-plus.nix { };
|
||||
plasma-applet-virtual-desktop-bar = callPackage ./3rdparty/addons/virtual-desktop-bar.nix { };
|
||||
bismuth = callPackage ./3rdparty/addons/bismuth { };
|
||||
kwin-dynamic-workspaces = callPackage ./3rdparty/kwin/scripts/dynamic-workspaces.nix { };
|
||||
kwin-tiling = callPackage ./3rdparty/kwin/scripts/tiling.nix { };
|
||||
krohnkite = callPackage ./3rdparty/kwin/scripts/krohnkite.nix { };
|
||||
krunner-ssh = callPackage ./3rdparty/addons/krunner-ssh.nix { };
|
||||
krunner-symbols = callPackage ./3rdparty/addons/krunner-symbols.nix { };
|
||||
lightly = callPackage ./3rdparty/lightly { };
|
||||
parachute = callPackage ./3rdparty/kwin/scripts/parachute.nix { };
|
||||
};
|
||||
|
||||
} // lib.optionalAttrs config.allowAliases {
|
||||
ksysguard = throw "ksysguard has been replaced with plasma-systemmonitor";
|
||||
plasma-phone-components = throw "'plasma-phone-components' has been renamed to/replaced by 'plasma-mobile'";
|
||||
};
|
||||
in
|
||||
lib.makeScope libsForQt5.newScope packages
|
||||
64
pkgs/desktops/plasma-5/discover.nix
Normal file
64
pkgs/desktops/plasma-5/discover.nix
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
{ mkDerivation
|
||||
, lib
|
||||
, extra-cmake-modules
|
||||
, gettext
|
||||
, kdoctools
|
||||
, python3
|
||||
, appstream-qt
|
||||
, discount
|
||||
, flatpak
|
||||
, fwupd
|
||||
, ostree
|
||||
, packagekit-qt
|
||||
, pcre
|
||||
, util-linux
|
||||
, qtbase
|
||||
, qtquickcontrols2
|
||||
, qtx11extras
|
||||
, karchive
|
||||
, kcmutils
|
||||
, kconfig
|
||||
, kcrash
|
||||
, kdbusaddons
|
||||
, kdeclarative
|
||||
, kidletime
|
||||
, kio
|
||||
, kirigami2
|
||||
, kitemmodels
|
||||
, knewstuff
|
||||
, kwindowsystem
|
||||
, kxmlgui
|
||||
, plasma-framework
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "discover";
|
||||
nativeBuildInputs = [ extra-cmake-modules gettext kdoctools python3 ];
|
||||
buildInputs = [
|
||||
# discount is needed for libmarkdown
|
||||
appstream-qt
|
||||
discount
|
||||
flatpak
|
||||
fwupd
|
||||
ostree
|
||||
packagekit-qt
|
||||
pcre
|
||||
util-linux
|
||||
qtquickcontrols2
|
||||
qtx11extras
|
||||
karchive
|
||||
kcmutils
|
||||
kconfig
|
||||
kcrash
|
||||
kdbusaddons
|
||||
kdeclarative
|
||||
kidletime
|
||||
kio
|
||||
kirigami2
|
||||
kitemmodels
|
||||
knewstuff
|
||||
kwindowsystem
|
||||
kxmlgui
|
||||
plasma-framework
|
||||
];
|
||||
}
|
||||
1
pkgs/desktops/plasma-5/fetch.sh
Normal file
1
pkgs/desktops/plasma-5/fetch.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
WGET_ARGS=( https://download.kde.org/stable/plasma/5.24.5/ -A '*.tar.xz' )
|
||||
15
pkgs/desktops/plasma-5/kactivitymanagerd.nix
Normal file
15
pkgs/desktops/plasma-5/kactivitymanagerd.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules,
|
||||
boost, kconfig, kcoreaddons, kdbusaddons, ki18n, kio, kglobalaccel,
|
||||
kwindowsystem, kxmlgui, kcrash, qtbase
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kactivitymanagerd";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [
|
||||
boost kconfig kcoreaddons kdbusaddons kglobalaccel ki18n kio kwindowsystem
|
||||
kxmlgui kcrash
|
||||
];
|
||||
}
|
||||
28
pkgs/desktops/plasma-5/kde-cli-tools.nix
Normal file
28
pkgs/desktops/plasma-5/kde-cli-tools.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
lib, mkDerivation, extra-cmake-modules, kdoctools,
|
||||
kcmutils, kconfig, kdesu, ki18n, kiconthemes, kinit, kio, kwindowsystem,
|
||||
qtsvg, qtx11extras, kactivities, plasma-workspace
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kde-cli-tools";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [
|
||||
kcmutils kconfig kdesu ki18n kiconthemes kinit kio kwindowsystem qtsvg
|
||||
qtx11extras kactivities plasma-workspace
|
||||
];
|
||||
postInstall = ''
|
||||
# install a symlink in bin so that kdesu can eventually be found in PATH
|
||||
mkdir -p $out/bin
|
||||
ln -s $out/libexec/kf5/kdesu $out/bin
|
||||
'';
|
||||
dontWrapQtApps = true;
|
||||
preFixup = ''
|
||||
for program in $out/bin/*; do
|
||||
wrapQtApp $program
|
||||
done
|
||||
|
||||
# kdesu looks for kdeinit5 in PATH
|
||||
wrapQtApp $out/libexec/kf5/kdesu --suffix PATH : ${lib.getBin kinit}/bin
|
||||
'';
|
||||
}
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
diff --git a/kded/gtkconfig.cpp b/kded/gtkconfig.cpp
|
||||
index 5303636..199c4d5 100644
|
||||
--- a/kded/gtkconfig.cpp
|
||||
+++ b/kded/gtkconfig.cpp
|
||||
@@ -41,6 +41,16 @@ GtkConfig::GtkConfig(QObject *parent, const QVariantList&) :
|
||||
kdeglobalsConfigWatcher(KConfigWatcher::create(KSharedConfig::openConfig(QStringLiteral("kdeglobals")))),
|
||||
kwinConfigWatcher(KConfigWatcher::create(KSharedConfig::openConfig(QStringLiteral("kwinrc"))))
|
||||
{
|
||||
+ // Add GSETTINGS_SCHEMAS_PATH to the front of XDG_DATA_DIRS.
|
||||
+ // Normally this would be done by wrapGAppsHook, but this plugin
|
||||
+ // (shared object) cannot be wrapped.
|
||||
+ QByteArray xdgdata = qgetenv("XDG_DATA_DIRS");
|
||||
+ if (!xdgdata.isEmpty()) {
|
||||
+ xdgdata.push_front(":");
|
||||
+ }
|
||||
+ xdgdata.push_front(QByteArray(GSETTINGS_SCHEMAS_PATH));
|
||||
+ qputenv("XDG_DATA_DIRS", xdgdata);
|
||||
+
|
||||
QDBusConnection dbus = QDBusConnection::sessionBus();
|
||||
dbus.registerService(QStringLiteral("org.kde.GtkConfig"));
|
||||
dbus.registerObject(QStringLiteral("/GtkConfig"), this, QDBusConnection::ExportScriptableSlots);
|
||||
27
pkgs/desktops/plasma-5/kde-gtk-config/default.nix
Normal file
27
pkgs/desktops/plasma-5/kde-gtk-config/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules, wrapGAppsHook,
|
||||
glib, gtk2, gtk3, karchive, kcmutils, kconfigwidgets, ki18n, kiconthemes, kio,
|
||||
knewstuff, gsettings-desktop-schemas, xsettingsd, kdecoration, sass
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kde-gtk-config";
|
||||
nativeBuildInputs = [ extra-cmake-modules wrapGAppsHook ];
|
||||
dontWrapGApps = true; # There is nothing to wrap
|
||||
buildInputs = [
|
||||
ki18n kio glib gtk2 gtk3 karchive kcmutils kconfigwidgets kiconthemes
|
||||
knewstuff gsettings-desktop-schemas xsettingsd kdecoration sass
|
||||
];
|
||||
cmakeFlags = [
|
||||
"-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include"
|
||||
"-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk2.out}/lib/gtk-2.0/include"
|
||||
"-DGLIB_SCHEMAS_DIR=${gsettings-desktop-schemas.out}/"
|
||||
];
|
||||
# The gtkconfig KDED module will crash the daemon if the GSettings schemas
|
||||
# aren't found.
|
||||
patches = [ ./0001-gsettings-schemas-path.patch ];
|
||||
preConfigure = ''
|
||||
NIX_CFLAGS_COMPILE+=" -DGSETTINGS_SCHEMAS_PATH=\"$GSETTINGS_SCHEMAS_PATH\""
|
||||
'';
|
||||
}
|
||||
8
pkgs/desktops/plasma-5/kdecoration.nix
Normal file
8
pkgs/desktops/plasma-5/kdecoration.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ mkDerivation, lib, extra-cmake-modules, qtbase, ki18n, kcoreaddons }:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kdecoration";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ qtbase ki18n kcoreaddons ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
18
pkgs/desktops/plasma-5/kdeplasma-addons.nix
Normal file
18
pkgs/desktops/plasma-5/kdeplasma-addons.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules, kdoctools,
|
||||
kconfig, kconfigwidgets, kcoreaddons, kcmutils, kholidays,
|
||||
kio, knewstuff, kpurpose, kross, krunner, kservice,
|
||||
kunitconversion, ibus, plasma-framework, plasma-workspace, qtdeclarative,
|
||||
qtwebengine, qtx11extras
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kdeplasma-addons";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [
|
||||
kconfig kconfigwidgets kcoreaddons kcmutils kholidays kio
|
||||
knewstuff kpurpose kross krunner kservice kunitconversion ibus
|
||||
plasma-framework plasma-workspace qtdeclarative qtwebengine qtx11extras
|
||||
];
|
||||
}
|
||||
11
pkgs/desktops/plasma-5/kgamma5.nix
Normal file
11
pkgs/desktops/plasma-5/kgamma5.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules, kdoctools,
|
||||
kconfig, kconfigwidgets, ki18n, qtbase, qtx11extras, libXxf86vm
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kgamma5";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [ kconfig kconfigwidgets ki18n qtx11extras libXxf86vm ];
|
||||
}
|
||||
17
pkgs/desktops/plasma-5/khotkeys.nix
Normal file
17
pkgs/desktops/plasma-5/khotkeys.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules, kdoctools,
|
||||
qtbase,
|
||||
kcmutils, kdbusaddons, kdelibs4support, kglobalaccel, ki18n, kio, kxmlgui,
|
||||
plasma-framework, plasma-workspace, qtx11extras
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "khotkeys";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [
|
||||
kcmutils kdbusaddons kdelibs4support kglobalaccel ki18n kio kxmlgui
|
||||
plasma-framework plasma-workspace qtx11extras
|
||||
];
|
||||
outputs = [ "bin" "dev" "out" ];
|
||||
}
|
||||
27
pkgs/desktops/plasma-5/kinfocenter.nix
Normal file
27
pkgs/desktops/plasma-5/kinfocenter.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules, kdoctools,
|
||||
qtbase,
|
||||
kcmutils, kcompletion, kconfig, kconfigwidgets, kcoreaddons, kdbusaddons,
|
||||
kdeclarative, ki18n, kiconthemes, kio, kirigami2, kpackage, kservice,
|
||||
kwayland, kwidgetsaddons, kxmlgui, solid, systemsettings,
|
||||
libraw1394, libGLU, pciutils,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kinfocenter";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [
|
||||
kcmutils kcompletion kconfig kconfigwidgets kcoreaddons kdbusaddons
|
||||
kdeclarative ki18n kiconthemes kio kirigami2 kpackage kservice kwayland
|
||||
kwidgetsaddons kxmlgui solid systemsettings
|
||||
|
||||
libraw1394 libGLU pciutils
|
||||
];
|
||||
preFixup = ''
|
||||
# fix wrong symlink of infocenter pointing to a 'systemsettings5' binary in
|
||||
# the same directory, while it is actually located in a completely different
|
||||
# store path
|
||||
ln -sf ${lib.getBin systemsettings}/bin/systemsettings5 $out/bin/kinfocenter
|
||||
'';
|
||||
}
|
||||
14
pkgs/desktops/plasma-5/kmenuedit.nix
Normal file
14
pkgs/desktops/plasma-5/kmenuedit.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules, kdoctools,
|
||||
kdbusaddons, khotkeys, ki18n, kiconthemes, kio, kxmlgui,
|
||||
sonnet
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kmenuedit";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [
|
||||
kdbusaddons khotkeys ki18n kiconthemes kio kxmlgui sonnet
|
||||
];
|
||||
}
|
||||
17
pkgs/desktops/plasma-5/kscreen.nix
Normal file
17
pkgs/desktops/plasma-5/kscreen.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
kconfig, kcmutils, kconfigwidgets, kdbusaddons, kglobalaccel, ki18n,
|
||||
kwidgetsaddons, kxmlgui, libkscreen, qtdeclarative, qtgraphicaleffects, qtsensors,
|
||||
kwindowsystem, kdeclarative, plasma-framework, qtx11extras
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kscreen";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [
|
||||
kconfig kcmutils kconfigwidgets kdbusaddons kglobalaccel ki18n
|
||||
kwidgetsaddons kxmlgui libkscreen qtdeclarative qtgraphicaleffects qtsensors
|
||||
kwindowsystem kdeclarative plasma-framework qtx11extras
|
||||
];
|
||||
}
|
||||
18
pkgs/desktops/plasma-5/kscreenlocker.nix
Normal file
18
pkgs/desktops/plasma-5/kscreenlocker.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules, kdoctools,
|
||||
kcmutils, kcrash, kdeclarative, kglobalaccel, kidletime,
|
||||
kwayland, libXcursor, pam, plasma-framework, qtbase, qtdeclarative, qtx11extras,
|
||||
wayland, layer-shell-qt,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kscreenlocker";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [
|
||||
kcmutils kcrash kdeclarative kglobalaccel kidletime kwayland
|
||||
libXcursor pam plasma-framework qtdeclarative qtx11extras wayland
|
||||
layer-shell-qt
|
||||
];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
11
pkgs/desktops/plasma-5/ksshaskpass.nix
Normal file
11
pkgs/desktops/plasma-5/ksshaskpass.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules, kdoctools,
|
||||
kcoreaddons, ki18n, kwallet, kwidgetsaddons, qtbase,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "ksshaskpass";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [ kcoreaddons ki18n kwallet kwidgetsaddons qtbase ];
|
||||
}
|
||||
11
pkgs/desktops/plasma-5/ksystemstats.nix
Normal file
11
pkgs/desktops/plasma-5/ksystemstats.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ mkDerivation, lib
|
||||
, extra-cmake-modules
|
||||
, libksysguard, libnl, lm_sensors, networkmanager-qt
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "ksystemstats";
|
||||
NIX_CFLAGS_COMPILE = [ "-I${lib.getBin libksysguard}/share" ];
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ libksysguard libnl lm_sensors networkmanager-qt ];
|
||||
}
|
||||
21
pkgs/desktops/plasma-5/kwallet-pam.nix
Normal file
21
pkgs/desktops/plasma-5/kwallet-pam.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ mkDerivation, lib, extra-cmake-modules, pam, socat, libgcrypt, qtbase, kwallet, }:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kwallet-pam";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ pam socat libgcrypt qtbase kwallet ];
|
||||
postPatch = ''
|
||||
sed -i pam_kwallet_init -e "s|socat|${lib.getBin socat}/bin/socat|"
|
||||
'';
|
||||
|
||||
# We get a crash when QT_PLUGIN_PATH is more than 1000 characters.
|
||||
# pam_kwallet_init passes its environment to kwalletd5, but
|
||||
# wrapQtApps gives our environment a huge QT_PLUGIN_PATH value. We
|
||||
# are able to unset it here since kwalletd5 will have its own
|
||||
# QT_PLUGIN_PATH.
|
||||
postFixup = ''
|
||||
wrapProgram $out/libexec/pam_kwallet_init --unset QT_PLUGIN_PATH
|
||||
'';
|
||||
|
||||
dontWrapQtApps = true;
|
||||
}
|
||||
12
pkgs/desktops/plasma-5/kwayland-integration.nix
Normal file
12
pkgs/desktops/plasma-5/kwayland-integration.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules,
|
||||
kguiaddons, kidletime, kwayland, kwindowsystem, qtbase,
|
||||
wayland-protocols, wayland-scanner, wayland
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kwayland-integration";
|
||||
nativeBuildInputs = [ extra-cmake-modules wayland-scanner ];
|
||||
buildInputs = [ kguiaddons kidletime kwindowsystem kwayland qtbase wayland-protocols wayland ];
|
||||
}
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
From 80bca7370d4b8bafcf18abcda30f02e190f419a4 Mon Sep 17 00:00:00 2001
|
||||
From: Tom Hall <tahall256@protonmail.ch>
|
||||
Date: Sat, 29 Aug 2020 19:14:30 +0100
|
||||
Subject: [PATCH] Use KDE_INSTALL_TARGETS_DEFAULT_ARGS when installing targets
|
||||
|
||||
---
|
||||
src/server/CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/server/CMakeLists.txt b/src/server/CMakeLists.txt
|
||||
index 0f99682..35e3601 100644
|
||||
--- a/src/server/CMakeLists.txt
|
||||
+++ b/src/server/CMakeLists.txt
|
||||
@@ -356,7 +356,7 @@ set_target_properties(KWaylandServer PROPERTIES VERSION ${KWAYLANDSERVER_VERSI
|
||||
SOVERSION ${KWAYLANDSERVER_SOVERSION}
|
||||
)
|
||||
|
||||
-install(TARGETS KWaylandServer EXPORT KWaylandServerTargets ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
+install(TARGETS KWaylandServer EXPORT KWaylandServerTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
|
||||
set(SERVER_LIB_HEADERS
|
||||
${CMAKE_CURRENT_BINARY_DIR}/KWaylandServer/kwaylandserver_export.h
|
||||
--
|
||||
2.26.2
|
||||
|
||||
18
pkgs/desktops/plasma-5/kwayland-server/default.nix
Normal file
18
pkgs/desktops/plasma-5/kwayland-server/default.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
mkDerivation, lib, cmake,
|
||||
extra-cmake-modules, kdoctools,
|
||||
kwayland, plasma-wayland-protocols,
|
||||
wayland, wayland-protocols, qtbase
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kwayland-server";
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
extra-cmake-modules #kdoctools
|
||||
];
|
||||
buildInputs = [
|
||||
kwayland plasma-wayland-protocols wayland wayland-protocols
|
||||
];
|
||||
patches = [ ./0001-Use-KDE_INSTALL_TARGETS_DEFAULT_ARGS-when-installing.patch ];
|
||||
}
|
||||
|
|
@ -0,0 +1,114 @@
|
|||
From 29ec6fada935ef966e5859082435ed57daa9522d Mon Sep 17 00:00:00 2001
|
||||
From: Samuel Dionne-Riel <samuel@dionne-riel.com>
|
||||
Date: Tue, 16 Mar 2021 15:03:59 -0400
|
||||
Subject: [PATCH] [NixOS] Unwrap executable name for .desktop search
|
||||
|
||||
Why is this necessary even though -a "$0" is used in the wrapper?
|
||||
Because it's completely bypassing argv0! This looks at the executable
|
||||
file in-use according to the kernel!
|
||||
|
||||
Wrappers cannot affect the `/proc/.../exe` symlink!
|
||||
|
||||
Co-authored-by: Yaroslav Bolyukin <iam@lach.pw>
|
||||
---
|
||||
src/nixos_utils.h | 41 +++++++++++++++++++++++++++++++++++++++++
|
||||
src/service_utils.h | 4 +++-
|
||||
src/waylandclient.cpp | 5 ++++-
|
||||
3 files changed, 48 insertions(+), 2 deletions(-)
|
||||
create mode 100644 src/nixos_utils.h
|
||||
|
||||
diff --git a/src/nixos_utils.h b/src/nixos_utils.h
|
||||
new file mode 100644
|
||||
index 0000000..726065d
|
||||
--- /dev/null
|
||||
+++ b/src/nixos_utils.h
|
||||
@@ -0,0 +1,41 @@
|
||||
+#ifndef NIXOS_UTILS_H
|
||||
+#define NIXOS_UTILS_H
|
||||
+
|
||||
+// kwin
|
||||
+#include <kwinglobals.h>
|
||||
+
|
||||
+namespace KWin
|
||||
+{
|
||||
+
|
||||
+static QString unwrapExecutablePath(const QString &in_executablePath)
|
||||
+{
|
||||
+ // NixOS fixes many packaging issues through "wrapper" scripts that manipulates the environment or does
|
||||
+ // miscellaneous trickeries and mischievous things to make the programs work.
|
||||
+ // In turn, programs often employs different mischievous schemes and trickeries to do *other things.
|
||||
+ // It often happens that they conflict.
|
||||
+ // Here, `kwin` tries to detect the .desktop file for a given process.
|
||||
+ // `kwin` followed the process `/proc/.../exe` up to the actual binary running.
|
||||
+ // It normally would be fine, e.g. /usr/bin/foobar is what's in the desktop file.
|
||||
+ // But it's not the truth here! It's extremely likely the resolved path is /nix/store/.../bin/.foobar-wrapped
|
||||
+ // rather than what the desktop file points to, something like /nix/store/.../bin/foobar !!
|
||||
+ // Since the wrappers for Nixpkgs *always* prepend a dot and append -wrapped, we assume here that we can keep
|
||||
+ // `/^(.*)\/\.([^/]*)-wrapped/` until the (equivalent) regex does not match.
|
||||
+ // This should canonicalize the wrapper name to the expected name to look for in the desktop file.
|
||||
+
|
||||
+ // Use a copy of the const string
|
||||
+ QString executablePath(in_executablePath);
|
||||
+
|
||||
+ // While the parts needed are present, "unwrap" one layer of wrapper names.
|
||||
+ while (executablePath.endsWith("-wrapped") && executablePath[executablePath.lastIndexOf("/")+1] == QChar('.')) {
|
||||
+ // Approximately equivalent to s/-wrapped$//
|
||||
+ executablePath.remove(executablePath.length() - 8, 8);
|
||||
+ // Approximately equivalent to s;/\.;/;
|
||||
+ executablePath.remove(executablePath.lastIndexOf("/")+1, 1);
|
||||
+ }
|
||||
+
|
||||
+ return executablePath;
|
||||
+}
|
||||
+
|
||||
+}// namespace
|
||||
+
|
||||
+#endif // NIXOS_UTILS_H
|
||||
diff --git a/src/utils/serviceutils.h b/src/utils/serviceutils.h
|
||||
index 8a70c1f..475b15d 100644
|
||||
--- a/src/utils/serviceutils.h
|
||||
+++ b/src/utils/serviceutils.h
|
||||
@@ -19,6 +19,7 @@
|
||||
#include <QLoggingCategory>
|
||||
//KF
|
||||
#include <KApplicationTrader>
|
||||
+#include "nixos_utils.h"
|
||||
|
||||
namespace KWin
|
||||
{
|
||||
@@ -26,8 +27,9 @@ namespace KWin
|
||||
const static QString s_waylandInterfaceName = QStringLiteral("X-KDE-Wayland-Interfaces");
|
||||
const static QString s_dbusRestrictedInterfaceName = QStringLiteral("X-KDE-DBUS-Restricted-Interfaces");
|
||||
|
||||
-static QStringList fetchProcessServiceField(const QString &executablePath, const QString &fieldName)
|
||||
+static QStringList fetchProcessServiceField(const QString &in_executablePath, const QString &fieldName)
|
||||
{
|
||||
+ const QString executablePath = unwrapExecutablePath(in_executablePath);
|
||||
// needed to be able to use the logging category in a header static function
|
||||
static QLoggingCategory KWIN_UTILS ("KWIN_UTILS", QtWarningMsg);
|
||||
const auto servicesFound = KApplicationTrader::query([&executablePath] (const KService::Ptr &service) {
|
||||
diff --git a/src/waylandclient.cpp b/src/waylandclient.cpp
|
||||
index fd2c0c1..ae8cf96 100644
|
||||
--- a/src/waylandclient.cpp
|
||||
+++ b/src/waylandclient.cpp
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "screens.h"
|
||||
#include "wayland_server.h"
|
||||
#include "workspace.h"
|
||||
+#include "nixos_utils.h"
|
||||
|
||||
#include <KWaylandServer/display.h>
|
||||
#include <KWaylandServer/clientbuffer.h>
|
||||
@@ -173,7 +174,9 @@ void WaylandClient::updateIcon()
|
||||
|
||||
void WaylandClient::updateResourceName()
|
||||
{
|
||||
- const QFileInfo fileInfo(surface()->client()->executablePath());
|
||||
+ const QString in_path = surface()->client()->executablePath();
|
||||
+ const QString path = unwrapExecutablePath(in_path);
|
||||
+ const QFileInfo fileInfo(path);
|
||||
if (fileInfo.exists()) {
|
||||
const QByteArray executableFileName = fileInfo.fileName().toUtf8();
|
||||
setResourceClass(executableFileName, executableFileName);
|
||||
--
|
||||
2.32.0
|
||||
25
pkgs/desktops/plasma-5/kwin/0001-follow-symlinks.patch
Normal file
25
pkgs/desktops/plasma-5/kwin/0001-follow-symlinks.patch
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
From af569c9ed8079169b524b31461e2789baa09ef7a Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Tuegel <ttuegel@mailbox.org>
|
||||
Date: Mon, 27 Jan 2020 05:31:13 -0600
|
||||
Subject: [PATCH 1/3] follow symlinks
|
||||
|
||||
---
|
||||
src/plugins/kdecorations/aurorae/src/aurorae.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/plugins/kdecorations/aurorae/src/aurorae.cpp b/src/plugins/kdecorations/aurorae/src/aurorae.cpp
|
||||
index 5242cb7..2e4ddae 100644
|
||||
--- a/src/plugins/kdecorations/aurorae/src/aurorae.cpp
|
||||
+++ b/src/plugins/kdecorations/aurorae/src/aurorae.cpp
|
||||
@@ -201,7 +201,7 @@ void Helper::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();
|
||||
--
|
||||
2.29.2
|
||||
|
||||
25
pkgs/desktops/plasma-5/kwin/0002-xwayland.patch
Normal file
25
pkgs/desktops/plasma-5/kwin/0002-xwayland.patch
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
From 5c90dd84f541bd4789525f12f12ad24411b99018 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Tuegel <ttuegel@mailbox.org>
|
||||
Date: Mon, 27 Jan 2020 05:31:23 -0600
|
||||
Subject: [PATCH 2/3] xwayland
|
||||
|
||||
---
|
||||
src/xwl/xwayland.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/xwl/xwayland.cpp b/src/xwl/xwayland.cpp
|
||||
index 57efdde..a211a58 100644
|
||||
--- a/src/xwl/xwayland.cpp
|
||||
+++ b/src/xwl/xwayland.cpp
|
||||
@@ -124,7 +124,7 @@ void Xwayland::start()
|
||||
|
||||
m_xwaylandProcess = new Process(this);
|
||||
m_xwaylandProcess->setProcessChannelMode(QProcess::ForwardedErrorChannel);
|
||||
- m_xwaylandProcess->setProgram(QStringLiteral("Xwayland"));
|
||||
+ m_xwaylandProcess->setProgram(QLatin1String(NIXPKGS_XWAYLAND));
|
||||
QProcessEnvironment env = m_app->processStartupEnvironment();
|
||||
env.insert("WAYLAND_SOCKET", QByteArray::number(wlfd));
|
||||
env.insert("EGL_PLATFORM", QByteArrayLiteral("DRM"));
|
||||
--
|
||||
2.29.2
|
||||
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
From 8d49f5ef8692c352a62f4f8b1bc68e6e210bbee6 Mon Sep 17 00:00:00 2001
|
||||
From: Yaroslav Bolyukin <iam@lach.pw>
|
||||
Date: Wed, 23 Dec 2020 18:02:14 +0300
|
||||
Subject: [PATCH 3/3] plugins/qpa: allow using nixos wrapper
|
||||
|
||||
Signed-off-by: Yaroslav Bolyukin <iam@lach.pw>
|
||||
---
|
||||
src/plugins/qpa/main.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/plugins/qpa/main.cpp b/src/plugins/qpa/main.cpp
|
||||
index efd236b..a69c046 100644
|
||||
--- a/src/plugins/qpa/main.cpp
|
||||
+++ b/src/plugins/qpa/main.cpp
|
||||
@@ -23,7 +23,7 @@ public:
|
||||
QPlatformIntegration *KWinIntegrationPlugin::create(const QString &system, const QStringList ¶mList)
|
||||
{
|
||||
Q_UNUSED(paramList)
|
||||
- if (!QCoreApplication::applicationFilePath().endsWith(QLatin1String("kwin_wayland")) && !qEnvironmentVariableIsSet("KWIN_FORCE_OWN_QPA")) {
|
||||
+ if (!QCoreApplication::applicationFilePath().endsWith(QLatin1String("kwin_wayland")) && !QCoreApplication::applicationFilePath().endsWith(QLatin1String(".kwin_wayland-wrapped")) && !qEnvironmentVariableIsSet("KWIN_FORCE_OWN_QPA")) {
|
||||
// Not KWin
|
||||
return nullptr;
|
||||
}
|
||||
--
|
||||
2.29.2
|
||||
|
||||
65
pkgs/desktops/plasma-5/kwin/default.nix
Normal file
65
pkgs/desktops/plasma-5/kwin/default.nix
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
{
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules, kdoctools, fetchpatch,
|
||||
|
||||
libepoxy, lcms2, libICE, libSM, libcap, libdrm, libinput, libxkbcommon, mesa,
|
||||
pipewire, udev, wayland, xcb-util-cursor, xwayland,
|
||||
|
||||
qtdeclarative, qtmultimedia, qtquickcontrols2, qtscript, qtsensors,
|
||||
qtvirtualkeyboard, qtx11extras,
|
||||
|
||||
breeze-qt5, kactivities, kcompletion, kcmutils, kconfig, kconfigwidgets,
|
||||
kcoreaddons, kcrash, kdeclarative, kdecoration, kglobalaccel, ki18n,
|
||||
kiconthemes, kidletime, kinit, kio, knewstuff, knotifications, kpackage,
|
||||
krunner, kscreenlocker, kservice, kwayland, kwayland-server, kwidgetsaddons,
|
||||
kwindowsystem, kxmlgui, plasma-framework, libqaccessibilityclient,
|
||||
}:
|
||||
|
||||
# TODO (ttuegel): investigate qmlplugindump failure
|
||||
|
||||
mkDerivation {
|
||||
pname = "kwin";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [
|
||||
libepoxy lcms2 libICE libSM libcap libdrm libinput libxkbcommon mesa pipewire
|
||||
udev wayland xcb-util-cursor xwayland
|
||||
|
||||
qtdeclarative qtmultimedia qtquickcontrols2 qtscript qtsensors
|
||||
qtvirtualkeyboard qtx11extras
|
||||
|
||||
breeze-qt5 kactivities kcmutils kcompletion kconfig kconfigwidgets
|
||||
kcoreaddons kcrash kdeclarative kdecoration kglobalaccel ki18n kiconthemes
|
||||
kidletime kinit kio knewstuff knotifications kpackage krunner kscreenlocker
|
||||
kservice kwayland kwayland-server kwidgetsaddons kwindowsystem kxmlgui
|
||||
plasma-framework libqaccessibilityclient
|
||||
|
||||
];
|
||||
outputs = [ "out" "dev" ];
|
||||
patches = [
|
||||
./0001-follow-symlinks.patch
|
||||
./0002-xwayland.patch
|
||||
./0003-plugins-qpa-allow-using-nixos-wrapper.patch
|
||||
./0001-NixOS-Unwrap-executable-name-for-.desktop-search.patch
|
||||
# Pass special environments through arguemnts to `kwin_wayland`, bypassing
|
||||
# ld.so(8) environment stripping due to `kwin_wayland`'s capabilities.
|
||||
# We need this to have `TZDIR` correctly set for `plasmashell`, or
|
||||
# everything related to timezone, like clock widgets, will be broken.
|
||||
# https://invent.kde.org/plasma/kwin/-/merge_requests/1590
|
||||
(fetchpatch {
|
||||
url = "https://invent.kde.org/plasma/kwin/-/commit/9a008b223ad696db3bf5692750f2b74e578e08b8.diff";
|
||||
sha256 = "sha256-f35G+g2MVABLDbAkCed3ZmtDWrzYn1rdD08mEx35j4k=";
|
||||
})
|
||||
];
|
||||
CXXFLAGS = [
|
||||
''-DNIXPKGS_XWAYLAND=\"${lib.getBin xwayland}/bin/Xwayland\"''
|
||||
];
|
||||
cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF" ];
|
||||
postInstall = ''
|
||||
# Some package(s) refer to these service types by the wrong name.
|
||||
# I would prefer to patch those packages, but I cannot find them!
|
||||
ln -s ''${!outputBin}/share/kservicetypes5/kwineffect.desktop \
|
||||
''${!outputBin}/share/kservicetypes5/kwin-effect.desktop
|
||||
ln -s ''${!outputBin}/share/kservicetypes5/kwinscript.desktop \
|
||||
''${!outputBin}/share/kservicetypes5/kwin-script.desktop
|
||||
'';
|
||||
}
|
||||
11
pkgs/desktops/plasma-5/kwrited.nix
Normal file
11
pkgs/desktops/plasma-5/kwrited.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules,
|
||||
kcoreaddons, kdbusaddons, ki18n, knotifications, kpty, qtbase,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kwrited";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ kcoreaddons kdbusaddons ki18n knotifications kpty qtbase ];
|
||||
}
|
||||
10
pkgs/desktops/plasma-5/layer-shell-qt.nix
Normal file
10
pkgs/desktops/plasma-5/layer-shell-qt.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ mkDerivation, lib
|
||||
, extra-cmake-modules
|
||||
, kguiaddons, kidletime, kwayland, kwindowsystem, qtbase, wayland-scanner, wayland, wayland-protocols
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "layer-shell-qt";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ kguiaddons kidletime kwindowsystem kwayland qtbase wayland-scanner wayland wayland-protocols ];
|
||||
}
|
||||
22
pkgs/desktops/plasma-5/libkscreen/default.nix
Normal file
22
pkgs/desktops/plasma-5/libkscreen/default.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
mkDerivation, lib, propagate,
|
||||
extra-cmake-modules,
|
||||
qtbase,
|
||||
wayland-scanner, kwayland,
|
||||
plasma-wayland-protocols, wayland,
|
||||
libXrandr, qtx11extras
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "libkscreen";
|
||||
nativeBuildInputs = [ extra-cmake-modules wayland-scanner ];
|
||||
buildInputs = [ kwayland plasma-wayland-protocols wayland libXrandr qtx11extras ];
|
||||
outputs = [ "out" "dev" ];
|
||||
patches = [
|
||||
./libkscreen-backends-path.patch
|
||||
];
|
||||
preConfigure = ''
|
||||
NIX_CFLAGS_COMPILE+=" -DNIXPKGS_LIBKSCREEN_BACKENDS=\"''${!outputBin}/$qtPluginPrefix/kf5/kscreen\""
|
||||
'';
|
||||
setupHook = propagate "out";
|
||||
}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
Index: libkscreen-5.9.4/src/backendmanager.cpp
|
||||
===================================================================
|
||||
--- libkscreen-5.9.4.orig/src/backendmanager.cpp
|
||||
+++ libkscreen-5.9.4/src/backendmanager.cpp
|
||||
@@ -172,14 +172,11 @@ QFileInfo BackendManager::preferredBackend(const QString &backend)
|
||||
QFileInfoList BackendManager::listBackends()
|
||||
{
|
||||
// Compile a list of installed backends first
|
||||
- const QString backendFilter = QStringLiteral("KSC_*");
|
||||
- const QStringList paths = QCoreApplication::libraryPaths();
|
||||
- QFileInfoList finfos;
|
||||
- for (const QString &path : paths) {
|
||||
- const QDir dir(path + QLatin1String("/kf5/kscreen/"), backendFilter, QDir::SortFlags(QDir::QDir::Name), QDir::NoDotAndDotDot | QDir::Files);
|
||||
- finfos.append(dir.entryInfoList());
|
||||
- }
|
||||
- return finfos;
|
||||
+ const QDir dir(QLatin1String(NIXPKGS_LIBKSCREEN_BACKENDS),
|
||||
+ QStringLiteral("KSC_*"),
|
||||
+ QDir::SortFlags(QDir::QDir::Name),
|
||||
+ QDir::NoDotAndDotDot | QDir::Files);
|
||||
+ return dir.entryInfoList();
|
||||
}
|
||||
|
||||
KScreen::AbstractBackend *BackendManager::loadBackendPlugin(QPluginLoader *loader, const QString &name, const QVariantMap &arguments)
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
From 46164a50de4102d02ae9d1d480acdd4b12303db8 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Tuegel <ttuegel@gmail.com>
|
||||
Date: Wed, 14 Oct 2015 07:07:22 -0500
|
||||
Subject: [PATCH] qdiriterator follow symlinks
|
||||
|
||||
---
|
||||
processui/scripting.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/processui/scripting.cpp b/processui/scripting.cpp
|
||||
index efed8ff..841761a 100644
|
||||
--- a/processui/scripting.cpp
|
||||
+++ b/processui/scripting.cpp
|
||||
@@ -293,7 +293,7 @@ void Scripting::loadContextMenu()
|
||||
const QStringList dirs =
|
||||
QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("ksysguard/scripts/"), QStandardPaths::LocateDirectory);
|
||||
for (const QString &dir : dirs) {
|
||||
- QDirIterator it(dir, QStringList() << QStringLiteral("*.desktop"), QDir::NoFilter, QDirIterator::Subdirectories);
|
||||
+ QDirIterator it(dir, QStringList() << QStringLiteral("*.desktop"), QDir::NoFilter, QDirIterator::Subdirectories | QDirIterator::FollowSymlinks);
|
||||
while (it.hasNext()) {
|
||||
scripts.append(it.next());
|
||||
}
|
||||
--
|
||||
2.5.2
|
||||
21
pkgs/desktops/plasma-5/libksysguard/default.nix
Normal file
21
pkgs/desktops/plasma-5/libksysguard/default.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules,
|
||||
kauth, kcompletion, kconfig, kconfigwidgets, kcoreaddons, ki18n, kiconthemes,
|
||||
knewstuff, kservice, kwidgetsaddons, kwindowsystem, plasma-framework,
|
||||
qtbase, qtscript, qtwebengine, qtx11extras, libnl, libpcap, qtsensors, lm_sensors,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "libksysguard";
|
||||
patches = [
|
||||
./0001-qdiriterator-follow-symlinks.patch
|
||||
];
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [
|
||||
kauth kconfig ki18n kiconthemes kwindowsystem kcompletion kconfigwidgets
|
||||
kcoreaddons kservice kwidgetsaddons plasma-framework qtscript qtx11extras
|
||||
qtwebengine knewstuff libnl libpcap qtsensors lm_sensors
|
||||
];
|
||||
outputs = [ "bin" "dev" "out" ];
|
||||
}
|
||||
15
pkgs/desktops/plasma-5/milou.nix
Normal file
15
pkgs/desktops/plasma-5/milou.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules,
|
||||
kcoreaddons, kdeclarative, ki18n, kitemmodels, krunner, kservice,
|
||||
plasma-framework, qtbase, qtscript, qtdeclarative
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "milou";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [
|
||||
kcoreaddons kdeclarative ki18n kitemmodels krunner kservice plasma-framework
|
||||
qtdeclarative qtscript
|
||||
];
|
||||
}
|
||||
18
pkgs/desktops/plasma-5/oxygen.nix
Normal file
18
pkgs/desktops/plasma-5/oxygen.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
frameworkintegration, kcmutils, kcompletion, kconfig, kdecoration, kguiaddons,
|
||||
ki18n, kwidgetsaddons, kservice, kwayland, kwindowsystem, qtdeclarative,
|
||||
qtx11extras, libXdmcp
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "oxygen";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
propagatedBuildInputs = [
|
||||
frameworkintegration kcmutils kcompletion kconfig kdecoration kguiaddons
|
||||
ki18n kservice kwayland kwidgetsaddons kwindowsystem qtdeclarative
|
||||
qtx11extras libXdmcp
|
||||
];
|
||||
outputs = [ "bin" "dev" "out" ];
|
||||
}
|
||||
|
|
@ -0,0 +1,210 @@
|
|||
From e63a0dc2a7b185906a93d60e9d5d6deee4950efc Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?M=C3=A9ven=20Car?= <meven.car@enioka.com>
|
||||
Date: Wed, 20 May 2020 14:02:07 +0200
|
||||
Subject: [PATCH] Add a logging category config file
|
||||
|
||||
Makes powerdevil default logging level Warning
|
||||
---
|
||||
CMakeLists.txt | 2 ++
|
||||
daemon/CMakeLists.txt | 6 ++++++
|
||||
daemon/actions/dpms/CMakeLists.txt | 2 +-
|
||||
daemon/backends/CMakeLists.txt | 6 +++---
|
||||
daemon/powerdevil_debug.cpp | 21 ---------------------
|
||||
daemon/powerdevil_debug.h | 26 --------------------------
|
||||
kcmodule/activities/CMakeLists.txt | 2 +-
|
||||
kcmodule/common/CMakeLists.txt | 2 +-
|
||||
kcmodule/profiles/CMakeLists.txt | 2 +-
|
||||
powerdevil.categories | 1 +
|
||||
10 files changed, 16 insertions(+), 54 deletions(-)
|
||||
delete mode 100644 daemon/powerdevil_debug.cpp
|
||||
delete mode 100644 daemon/powerdevil_debug.h
|
||||
create mode 100644 powerdevil.categories
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 5ded8f5a..52a7318c 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -11,6 +11,7 @@ find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
|
||||
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
||||
|
||||
include(ECMSetupVersion)
|
||||
+include(ECMQtDeclareLoggingCategory)
|
||||
include(FeatureSummary)
|
||||
include(KDEInstallDirs)
|
||||
include(KDECMakeSettings)
|
||||
@@ -76,6 +77,7 @@ add_subdirectory(daemon)
|
||||
add_subdirectory(kcmodule)
|
||||
add_subdirectory(doc)
|
||||
|
||||
+install( FILES powerdevil.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
|
||||
install( FILES powerdevil.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFY5RCDIR} )
|
||||
|
||||
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
||||
diff --git a/daemon/CMakeLists.txt b/daemon/CMakeLists.txt
|
||||
index 33ca655b..96cc9b7b 100644
|
||||
--- a/daemon/CMakeLists.txt
|
||||
+++ b/daemon/CMakeLists.txt
|
||||
@@ -48,6 +48,12 @@ set(powerdevilcore_SRCS
|
||||
kwinkscreenhelpereffect.cpp
|
||||
)
|
||||
|
||||
+ecm_qt_declare_logging_category(powerdevilcore_SRCS
|
||||
+ HEADER powerdevil_debug.h
|
||||
+ IDENTIFIER POWERDEVIL
|
||||
+ CATEGORY_NAME org.kde.powerdevil
|
||||
+ DEFAULT_SEVERITY Warning)
|
||||
+
|
||||
kconfig_add_kcfg_files(powerdevilcore_SRCS ../PowerDevilSettings.kcfgc)
|
||||
|
||||
# Action DBus Adaptors
|
||||
diff --git a/daemon/actions/dpms/CMakeLists.txt b/daemon/actions/dpms/CMakeLists.txt
|
||||
index f8ca4e20..3b8bd95b 100644
|
||||
--- a/daemon/actions/dpms/CMakeLists.txt
|
||||
+++ b/daemon/actions/dpms/CMakeLists.txt
|
||||
@@ -3,7 +3,7 @@ include_directories(${PowerDevil_SOURCE_DIR}/daemon
|
||||
${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
set(powerdevildpmsaction_SRCS
|
||||
- ${PowerDevil_SOURCE_DIR}/daemon/powerdevil_debug.cpp
|
||||
+ ${CMAKE_CURRENT_BINARY_DIR}/../../powerdevil_debug.cpp
|
||||
powerdevildpmsaction.cpp
|
||||
abstractdpmshelper.cpp
|
||||
xcbdpmshelper.cpp
|
||||
diff --git a/daemon/backends/CMakeLists.txt b/daemon/backends/CMakeLists.txt
|
||||
index 89400446..05c4263e 100644
|
||||
--- a/daemon/backends/CMakeLists.txt
|
||||
+++ b/daemon/backends/CMakeLists.txt
|
||||
@@ -4,7 +4,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/upower
|
||||
${X11_Xrandr_INCLUDE_PATH})
|
||||
|
||||
set(powerdevilupowerbackend_SRCS
|
||||
- ${PowerDevil_SOURCE_DIR}/daemon/powerdevil_debug.cpp
|
||||
+ ${CMAKE_CURRENT_BINARY_DIR}/../powerdevil_debug.cpp
|
||||
upower/upowersuspendjob.cpp
|
||||
upower/login1suspendjob.cpp
|
||||
upower/powerdevilupowerbackend.cpp
|
||||
@@ -33,14 +33,14 @@ ${CMAKE_CURRENT_SOURCE_DIR}/upower/dbus/org.freedesktop.UPower.KbdBacklight.xml
|
||||
upower_kbdbacklight_interface)
|
||||
|
||||
## backlight helper executable
|
||||
-add_executable(backlighthelper upower/backlighthelper.cpp ${PowerDevil_SOURCE_DIR}/daemon/powerdevil_debug.cpp ${backlighthelper_mocs})
|
||||
+add_executable(backlighthelper upower/backlighthelper.cpp ${CMAKE_CURRENT_BINARY_DIR}/../powerdevil_debug.cpp ${backlighthelper_mocs})
|
||||
target_link_libraries(backlighthelper Qt5::Core KF5::AuthCore KF5::I18n)
|
||||
install(TARGETS backlighthelper DESTINATION ${KAUTH_HELPER_INSTALL_DIR})
|
||||
kauth_install_helper_files(backlighthelper org.kde.powerdevil.backlighthelper root)
|
||||
kauth_install_actions(org.kde.powerdevil.backlighthelper ${CMAKE_CURRENT_SOURCE_DIR}/upower/backlight_helper_actions.actions)
|
||||
|
||||
## discrete gpu helper executable
|
||||
-add_executable(discretegpuhelper upower/discretegpuhelper.cpp ${PowerDevil_SOURCE_DIR}/daemon/powerdevil_debug.cpp ${discretegpuhelper_mocs})
|
||||
+add_executable(discretegpuhelper upower/discretegpuhelper.cpp ${CMAKE_CURRENT_BINARY_DIR}/../powerdevil_debug.cpp ${discretegpuhelper_mocs})
|
||||
target_link_libraries(discretegpuhelper Qt5::Core KF5::AuthCore)
|
||||
install(TARGETS discretegpuhelper DESTINATION ${KAUTH_HELPER_INSTALL_DIR})
|
||||
kauth_install_helper_files(discretegpuhelper org.kde.powerdevil.discretegpuhelper root)
|
||||
diff --git a/daemon/powerdevil_debug.cpp b/daemon/powerdevil_debug.cpp
|
||||
deleted file mode 100644
|
||||
index 86172c1b..00000000
|
||||
--- a/daemon/powerdevil_debug.cpp
|
||||
+++ /dev/null
|
||||
@@ -1,21 +0,0 @@
|
||||
-/* This file is part of the KDE project
|
||||
- Copyright (C) 2014 Hrvoje Senjan <hrvoje.senjan@gmail.com>
|
||||
-
|
||||
- This library is free software; you can redistribute it and/or
|
||||
- modify it under the terms of the GNU Library General Public
|
||||
- License as published by the Free Software Foundation; either
|
||||
- version 2 of the License, or (at your option) any later version.
|
||||
-
|
||||
- This library is distributed in the hope that it will be useful,
|
||||
- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
- Library General Public License for more details.
|
||||
-
|
||||
- You should have received a copy of the GNU Library General Public License
|
||||
- along with this library; see the file COPYING.LIB. If not, write to
|
||||
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
- Boston, MA 02110-1301, USA.
|
||||
-*/
|
||||
-
|
||||
-#include "powerdevil_debug.h"
|
||||
-Q_LOGGING_CATEGORY(POWERDEVIL, "powerdevil")
|
||||
diff --git a/daemon/powerdevil_debug.h b/daemon/powerdevil_debug.h
|
||||
deleted file mode 100644
|
||||
index fcd9c10f..00000000
|
||||
--- a/daemon/powerdevil_debug.h
|
||||
+++ /dev/null
|
||||
@@ -1,26 +0,0 @@
|
||||
-/* This file is part of the KDE project
|
||||
- Copyright (C) 2014 Hrvoje Senjan <hrvoje.senjan@gmail.com>
|
||||
-
|
||||
- This library is free software; you can redistribute it and/or
|
||||
- modify it under the terms of the GNU Library General Public
|
||||
- License as published by the Free Software Foundation; either
|
||||
- version 2 of the License, or (at your option) any later version.
|
||||
-
|
||||
- This library is distributed in the hope that it will be useful,
|
||||
- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
- Library General Public License for more details.
|
||||
-
|
||||
- You should have received a copy of the GNU Library General Public License
|
||||
- along with this library; see the file COPYING.LIB. If not, write to
|
||||
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
- Boston, MA 02110-1301, USA.
|
||||
-*/
|
||||
-
|
||||
-#ifndef PROCESSCORE_DEBUG_H
|
||||
-#define PROCESSCORE_DEBUG_H
|
||||
-
|
||||
-#include <QLoggingCategory>
|
||||
-Q_DECLARE_LOGGING_CATEGORY(POWERDEVIL)
|
||||
-
|
||||
-#endif
|
||||
diff --git a/kcmodule/activities/CMakeLists.txt b/kcmodule/activities/CMakeLists.txt
|
||||
index 41a6da48..6e248e91 100644
|
||||
--- a/kcmodule/activities/CMakeLists.txt
|
||||
+++ b/kcmodule/activities/CMakeLists.txt
|
||||
@@ -1,7 +1,7 @@
|
||||
add_definitions(-DTRANSLATION_DOMAIN=\"powerdevilactivitiesconfig\")
|
||||
|
||||
set( kcm_powerdevil_activities_SRCS
|
||||
- ${PowerDevil_SOURCE_DIR}/daemon/powerdevil_debug.cpp
|
||||
+ ${CMAKE_CURRENT_BINARY_DIR}/../../daemon/powerdevil_debug.cpp
|
||||
activitypage.cpp
|
||||
activitywidget.cpp
|
||||
../common/ErrorOverlay.cpp
|
||||
diff --git a/kcmodule/common/CMakeLists.txt b/kcmodule/common/CMakeLists.txt
|
||||
index ca483fa7..400b7746 100644
|
||||
--- a/kcmodule/common/CMakeLists.txt
|
||||
+++ b/kcmodule/common/CMakeLists.txt
|
||||
@@ -1,7 +1,7 @@
|
||||
add_definitions(-DTRANSLATION_DOMAIN=\"libpowerdevilcommonconfig\")
|
||||
|
||||
set( powerdevil_config_common_private_SRCS
|
||||
- ${PowerDevil_SOURCE_DIR}/daemon/powerdevil_debug.cpp
|
||||
+ ${CMAKE_CURRENT_BINARY_DIR}/../../daemon/powerdevil_debug.cpp
|
||||
actionconfigwidget.cpp
|
||||
actioneditwidget.cpp
|
||||
ErrorOverlay.cpp
|
||||
diff --git a/kcmodule/profiles/CMakeLists.txt b/kcmodule/profiles/CMakeLists.txt
|
||||
index ac5c96e0..32279089 100644
|
||||
--- a/kcmodule/profiles/CMakeLists.txt
|
||||
+++ b/kcmodule/profiles/CMakeLists.txt
|
||||
@@ -1,7 +1,7 @@
|
||||
add_definitions(-DTRANSLATION_DOMAIN=\"powerdevilprofilesconfig\")
|
||||
|
||||
set( kcm_powerdevil_profiles_SRCS
|
||||
- ${PowerDevil_SOURCE_DIR}/daemon/powerdevil_debug.cpp
|
||||
+ ${CMAKE_CURRENT_BINARY_DIR}/../../daemon/powerdevil_debug.cpp
|
||||
EditPage.cpp
|
||||
${PowerDevil_SOURCE_DIR}/daemon/powerdevilprofilegenerator.cpp
|
||||
)
|
||||
diff --git a/powerdevil.categories b/powerdevil.categories
|
||||
new file mode 100644
|
||||
index 00000000..3147de54
|
||||
--- /dev/null
|
||||
+++ b/powerdevil.categories
|
||||
@@ -0,0 +1 @@
|
||||
+org.kde.powerdevil Powerdevil DEFAULT_SEVERITY [WARNING] IDENTIFIER [POWERDEVIL]
|
||||
--
|
||||
2.25.4
|
||||
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
From da6a4651f74625f4c7f3c31f1125cfa4e774780b Mon Sep 17 00:00:00 2001
|
||||
From: Yaroslav Bolyukin <iam@lach.pw>
|
||||
Date: Mon, 27 Sep 2021 22:45:58 +0300
|
||||
Subject: [PATCH] fix: add executable bit
|
||||
|
||||
Signed-off-by: Yaroslav Bolyukin <iam@lach.pw>
|
||||
---
|
||||
src/CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index 79ff12d..4f3d746 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -2,7 +2,7 @@ file(GLOB_RECURSE SCSS_SOURCES "*.scss")
|
||||
file(GLOB CSS_SOURCES "*.css")
|
||||
file(GLOB_RECURSE GTK2_SOURCES "gtk2/*")
|
||||
|
||||
-configure_file(build_theme.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/build_theme.sh @ONLY)
|
||||
+configure_file(build_theme.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/build_theme.sh FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE @ONLY)
|
||||
|
||||
set(SOURCES
|
||||
${SCSS_SOURCES}
|
||||
--
|
||||
2.33.0
|
||||
18
pkgs/desktops/plasma-5/plasma-browser-integration.nix
Normal file
18
pkgs/desktops/plasma-5/plasma-browser-integration.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
qtbase,
|
||||
kfilemetadata, kio, ki18n, kconfig , kdbusaddons, knotifications, kpurpose,
|
||||
krunner, kwindowsystem, kactivities, plasma-workspace
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "plasma-browser-integration";
|
||||
nativeBuildInputs = [
|
||||
extra-cmake-modules
|
||||
];
|
||||
buildInputs = [
|
||||
qtbase kfilemetadata kio ki18n kconfig kdbusaddons knotifications kpurpose
|
||||
krunner kwindowsystem kactivities plasma-workspace
|
||||
];
|
||||
}
|
||||
48
pkgs/desktops/plasma-5/plasma-desktop/default.nix
Normal file
48
pkgs/desktops/plasma-5/plasma-desktop/default.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules, kdoctools,
|
||||
|
||||
boost, fontconfig, ibus, libXcursor, libXft, libcanberra_kde, libpulseaudio,
|
||||
libxkbfile, xf86inputevdev, xf86inputsynaptics, xinput, xkeyboard_config,
|
||||
xorgserver, util-linux,
|
||||
|
||||
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
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "plasma-desktop";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [
|
||||
boost fontconfig ibus libcanberra_kde libpulseaudio libXcursor libXft xorgserver
|
||||
libxkbfile phonon xf86inputlibinput xf86inputevdev xf86inputsynaptics xinput
|
||||
xkeyboard_config
|
||||
|
||||
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 plasma-framework
|
||||
plasma-workspace qqc2-desktop-style
|
||||
];
|
||||
|
||||
patches = [
|
||||
./hwclock-path.patch
|
||||
./tzdir.patch
|
||||
];
|
||||
CXXFLAGS = [
|
||||
''-DNIXPKGS_HWCLOCK=\"${lib.getBin util-linux}/sbin/hwclock\"''
|
||||
];
|
||||
postInstall = ''
|
||||
# Display ~/Desktop contents on the desktop by default.
|
||||
sed -i "''${!outputBin}/share/plasma/shells/org.kde.plasma.desktop/contents/defaults" \
|
||||
-e 's/Containment=org.kde.desktopcontainment/Containment=org.kde.plasma.folder/'
|
||||
'';
|
||||
}
|
||||
24
pkgs/desktops/plasma-5/plasma-desktop/hwclock-path.patch
Normal file
24
pkgs/desktops/plasma-5/plasma-desktop/hwclock-path.patch
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
Index: plasma-desktop-5.8.5/kcms/dateandtime/helper.cpp
|
||||
===================================================================
|
||||
--- plasma-desktop-5.8.5.orig/kcms/dateandtime/helper.cpp
|
||||
+++ plasma-desktop-5.8.5/kcms/dateandtime/helper.cpp
|
||||
@@ -48,10 +48,6 @@
|
||||
#include <sys/types.h>
|
||||
#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 = QStringLiteral("/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 = QStandardPaths::findExecutable(QStringLiteral("hwclock"), exePath.split(QLatin1Char(':')));
|
||||
+ QString hwclock = QLatin1String(NIXPKGS_HWCLOCK);
|
||||
if (!hwclock.isEmpty()) {
|
||||
KProcess::execute(hwclock, QStringList() << QStringLiteral("--systohc"));
|
||||
}
|
||||
18
pkgs/desktops/plasma-5/plasma-desktop/tzdir.patch
Normal file
18
pkgs/desktops/plasma-5/plasma-desktop/tzdir.patch
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
Index: plasma-desktop-5.8.5/kcms/dateandtime/helper.cpp
|
||||
===================================================================
|
||||
--- plasma-desktop-5.8.5.orig/kcms/dateandtime/helper.cpp
|
||||
+++ plasma-desktop-5.8.5/kcms/dateandtime/helper.cpp
|
||||
@@ -181,7 +181,12 @@ int ClockHelper::tz( const QString& sele
|
||||
|
||||
val = selectedzone;
|
||||
#else
|
||||
- QString tz = "/usr/share/zoneinfo/" + selectedzone;
|
||||
+ QString tzdir = QString::fromLocal8Bit(qgetenv("TZDIR"));
|
||||
+ QString tz = tzdir + "/" + selectedzone;
|
||||
+ if (tzdir.isEmpty()) {
|
||||
+ // Standard Linux path
|
||||
+ tz = "/usr/share/zoneinfo/" + selectedzone;
|
||||
+ }
|
||||
|
||||
if (QFile::exists(tz)) { // make sure the new TZ really exists
|
||||
QFile::remove(QStringLiteral("/etc/localtime"));
|
||||
19
pkgs/desktops/plasma-5/plasma-disks.nix
Normal file
19
pkgs/desktops/plasma-5/plasma-disks.nix
Normal file
|
|
@ -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 {
|
||||
pname = "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" ];
|
||||
}
|
||||
17
pkgs/desktops/plasma-5/plasma-integration/default.nix
Normal file
17
pkgs/desktops/plasma-5/plasma-integration/default.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
breeze-qt5, kconfig, kconfigwidgets, kiconthemes, kio, knotifications,
|
||||
kwayland, libXcursor, qtquickcontrols2
|
||||
}:
|
||||
|
||||
# TODO: install Noto Sans and Oxygen Mono fonts with plasma-integration
|
||||
|
||||
mkDerivation {
|
||||
pname = "plasma-integration";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [
|
||||
breeze-qt5 kconfig kconfigwidgets kiconthemes kio knotifications kwayland
|
||||
libXcursor qtquickcontrols2
|
||||
];
|
||||
}
|
||||
43
pkgs/desktops/plasma-5/plasma-mobile/default.nix
Normal file
43
pkgs/desktops/plasma-5/plasma-mobile/default.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
mkDerivation, lib,
|
||||
|
||||
extra-cmake-modules, kdoctools,
|
||||
|
||||
coreutils, dbus, gnugrep, gnused, libdbusmenu, pam, wayland, appstream,
|
||||
|
||||
kdeclarative, kdelibs4support, kpeople, kconfig, krunner, kinit, kwayland, kwin,
|
||||
plasma-framework, telepathy, libphonenumber, protobuf, libqofono, modemmanager-qt,
|
||||
networkmanager-qt, plasma-workspace,
|
||||
maliit-framework, maliit-keyboard,
|
||||
|
||||
qtwayland, qttools
|
||||
}:
|
||||
|
||||
let inherit (lib) getBin getLib; in
|
||||
|
||||
mkDerivation {
|
||||
pname = "plasma-mobile";
|
||||
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [
|
||||
appstream libdbusmenu pam wayland
|
||||
kdeclarative kdelibs4support kpeople kconfig krunner kinit kwayland kwin
|
||||
plasma-framework telepathy libphonenumber protobuf libqofono modemmanager-qt
|
||||
networkmanager-qt maliit-framework maliit-keyboard
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace bin/kwinwrapper.in \
|
||||
--replace @KDE_INSTALL_FULL_LIBEXECDIR@ "${plasma-workspace}/libexec"
|
||||
|
||||
substituteInPlace bin/plasma-mobile.desktop.cmake \
|
||||
--replace @CMAKE_INSTALL_FULL_LIBEXECDIR@ "${plasma-workspace}/libexec"
|
||||
'';
|
||||
|
||||
# Ensures dependencies like libqofono (at the very least) are present for the shell.
|
||||
preFixup = ''
|
||||
wrapQtApp "$out/bin/kwinwrapper"
|
||||
'';
|
||||
|
||||
passthru.providedSessions = [ "plasma-mobile" ];
|
||||
}
|
||||
13
pkgs/desktops/plasma-5/plasma-nano/default.nix
Normal file
13
pkgs/desktops/plasma-5/plasma-nano/default.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
plasma-framework
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "plasma-nano";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [
|
||||
plasma-framework
|
||||
];
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/vpn/openvpn/openvpnadvancedwidget.cpp b/vpn/openvpn/openvpnadvancedwidget.cpp
|
||||
index 2f11ba1d..310f11b4 100644
|
||||
--- a/vpn/openvpn/openvpnadvancedwidget.cpp
|
||||
+++ b/vpn/openvpn/openvpnadvancedwidget.cpp
|
||||
@@ -75,7 +75,7 @@ OpenVpnAdvancedWidget::OpenVpnAdvancedWidget(const NetworkManager::VpnSetting::P
|
||||
connect(m_ui->cmbProxyType, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &OpenVpnAdvancedWidget::proxyTypeChanged);
|
||||
|
||||
// start openVPN process and get its cipher list
|
||||
- const QString openVpnBinary = QStandardPaths::findExecutable("openvpn", QStringList{"/sbin", "/usr/sbin"});
|
||||
+ const QString openVpnBinary = "@openvpn@/bin/openvpn";
|
||||
const QStringList ciphersArgs(QLatin1String("--show-ciphers"));
|
||||
const QStringList versionArgs(QLatin1String("--version"));
|
||||
|
||||
32
pkgs/desktops/plasma-5/plasma-nm/default.nix
Normal file
32
pkgs/desktops/plasma-5/plasma-nm/default.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
mkDerivation, lib, substituteAll,
|
||||
extra-cmake-modules, kdoctools,
|
||||
kcompletion, kconfigwidgets, kcoreaddons, kdbusaddons, kdeclarative,
|
||||
ki18n, kiconthemes, kinit, kio, kitemviews, knotifications, kservice, kwallet,
|
||||
kwidgetsaddons, kwindowsystem, kxmlgui, plasma-framework, prison, solid,
|
||||
|
||||
mobile-broadband-provider-info, openconnect, openvpn,
|
||||
modemmanager-qt, networkmanager-qt, qca-qt5,
|
||||
qtbase, qtdeclarative, qttools,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "plasma-nm";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools qttools ];
|
||||
buildInputs = [
|
||||
kdeclarative ki18n kio kwindowsystem plasma-framework kcompletion
|
||||
kconfigwidgets kcoreaddons kdbusaddons kiconthemes
|
||||
kinit kitemviews knotifications kservice kwallet kwidgetsaddons kxmlgui
|
||||
prison solid
|
||||
|
||||
qtdeclarative
|
||||
modemmanager-qt networkmanager-qt qca-qt5
|
||||
mobile-broadband-provider-info openconnect
|
||||
];
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./0002-openvpn-binary-path.patch;
|
||||
inherit openvpn;
|
||||
})
|
||||
];
|
||||
}
|
||||
20
pkgs/desktops/plasma-5/plasma-pa.nix
Normal file
20
pkgs/desktops/plasma-5/plasma-pa.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules, kdoctools,
|
||||
kconfigwidgets, kcoreaddons, kdeclarative, kglobalaccel, ki18n, kwindowsystem, plasma-framework,
|
||||
qtbase, qtdeclarative,
|
||||
gconf, glib, libcanberra-gtk3, libpulseaudio, sound-theme-freedesktop
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "plasma-pa";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [
|
||||
gconf glib libcanberra-gtk3 libpulseaudio sound-theme-freedesktop
|
||||
|
||||
kconfigwidgets kcoreaddons kdeclarative kglobalaccel ki18n plasma-framework
|
||||
kwindowsystem
|
||||
|
||||
qtbase qtdeclarative
|
||||
];
|
||||
}
|
||||
41
pkgs/desktops/plasma-5/plasma-sdk.nix
Normal file
41
pkgs/desktops/plasma-5/plasma-sdk.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ mkDerivation
|
||||
, lib
|
||||
, extra-cmake-modules
|
||||
, karchive
|
||||
, kcompletion
|
||||
, kconfig
|
||||
, kconfigwidgets
|
||||
, kcoreaddons
|
||||
, kdbusaddons
|
||||
, kdeclarative
|
||||
, ki18n
|
||||
, kiconthemes
|
||||
, kio
|
||||
, plasma-framework
|
||||
, kservice
|
||||
, ktexteditor
|
||||
, kwidgetsaddons
|
||||
, kdoctools
|
||||
, qtbase
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "plasma-sdk";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [
|
||||
karchive
|
||||
kcompletion
|
||||
kconfig
|
||||
kconfigwidgets
|
||||
kcoreaddons
|
||||
kdbusaddons
|
||||
kdeclarative
|
||||
ki18n
|
||||
kiconthemes
|
||||
kio
|
||||
plasma-framework
|
||||
kservice
|
||||
ktexteditor
|
||||
kwidgetsaddons
|
||||
];
|
||||
}
|
||||
37
pkgs/desktops/plasma-5/plasma-systemmonitor.nix
Normal file
37
pkgs/desktops/plasma-5/plasma-systemmonitor.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ mkDerivation
|
||||
, lib
|
||||
, extra-cmake-modules
|
||||
, kdoctools
|
||||
, qtquickcontrols2
|
||||
, kconfig
|
||||
, kcoreaddons
|
||||
, ki18n
|
||||
, kiconthemes
|
||||
, kitemmodels
|
||||
, kitemviews
|
||||
, knewstuff
|
||||
, libksysguard
|
||||
, kquickcharts
|
||||
, ksystemstats
|
||||
, qqc2-desktop-style
|
||||
, qtbase
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "plasma-systemmonitor";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [
|
||||
qtquickcontrols2
|
||||
kconfig
|
||||
kcoreaddons
|
||||
ki18n
|
||||
kitemmodels
|
||||
kitemviews
|
||||
knewstuff
|
||||
kiconthemes
|
||||
libksysguard
|
||||
kquickcharts
|
||||
ksystemstats
|
||||
qqc2-desktop-style
|
||||
];
|
||||
}
|
||||
16
pkgs/desktops/plasma-5/plasma-thunderbolt.nix
Normal file
16
pkgs/desktops/plasma-5/plasma-thunderbolt.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ mkDerivation
|
||||
, extra-cmake-modules
|
||||
, kcmutils
|
||||
, kcoreaddons
|
||||
, bolt
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "plasma-thunderbolt";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [
|
||||
kcmutils
|
||||
kcoreaddons
|
||||
bolt
|
||||
];
|
||||
}
|
||||
31
pkgs/desktops/plasma-5/plasma-vault/0001-encfs-path.patch
Normal file
31
pkgs/desktops/plasma-5/plasma-vault/0001-encfs-path.patch
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
From fef6bfe87db4411e3dda2f96741cd8204fe41d85 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Tuegel <ttuegel@mailbox.org>
|
||||
Date: Tue, 2 Nov 2021 05:57:50 -0500
|
||||
Subject: [PATCH 1/3] encfs path
|
||||
|
||||
---
|
||||
kded/engine/backends/encfs/encfsbackend.cpp | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/kded/engine/backends/encfs/encfsbackend.cpp b/kded/engine/backends/encfs/encfsbackend.cpp
|
||||
index 2d15fa2..3f49867 100644
|
||||
--- a/kded/engine/backends/encfs/encfsbackend.cpp
|
||||
+++ b/kded/engine/backends/encfs/encfsbackend.cpp
|
||||
@@ -101,12 +101,12 @@ QProcess *EncFsBackend::encfs(const QStringList &arguments) const
|
||||
auto config = KSharedConfig::openConfig(PLASMAVAULT_CONFIG_FILE);
|
||||
KConfigGroup backendConfig(config, "EncfsBackend");
|
||||
|
||||
- return process("encfs", arguments + backendConfig.readEntry("extraMountOptions", QStringList{}), {});
|
||||
+ return process(NIXPKGS_ENCFS, arguments + backendConfig.readEntry("extraMountOptions", QStringList{}), {});
|
||||
}
|
||||
|
||||
QProcess *EncFsBackend::encfsctl(const QStringList &arguments) const
|
||||
{
|
||||
- return process("encfsctl", arguments, {});
|
||||
+ return process(NIXPKGS_ENCFSCTL, arguments, {});
|
||||
}
|
||||
|
||||
} // namespace PlasmaVault
|
||||
--
|
||||
2.33.1
|
||||
|
||||
25
pkgs/desktops/plasma-5/plasma-vault/0002-cryfs-path.patch
Normal file
25
pkgs/desktops/plasma-5/plasma-vault/0002-cryfs-path.patch
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
From a89a0d3f9088d272c01ccb9b730d1dbb500f9cb8 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Tuegel <ttuegel@mailbox.org>
|
||||
Date: Tue, 2 Nov 2021 05:59:34 -0500
|
||||
Subject: [PATCH 2/3] cryfs path
|
||||
|
||||
---
|
||||
kded/engine/backends/cryfs/cryfsbackend.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/kded/engine/backends/cryfs/cryfsbackend.cpp b/kded/engine/backends/cryfs/cryfsbackend.cpp
|
||||
index 64138b6..1a9fde2 100644
|
||||
--- a/kded/engine/backends/cryfs/cryfsbackend.cpp
|
||||
+++ b/kded/engine/backends/cryfs/cryfsbackend.cpp
|
||||
@@ -207,7 +207,7 @@ QProcess *CryFsBackend::cryfs(const QStringList &arguments) const
|
||||
auto config = KSharedConfig::openConfig(PLASMAVAULT_CONFIG_FILE);
|
||||
KConfigGroup backendConfig(config, "CryfsBackend");
|
||||
|
||||
- return process("cryfs", arguments + backendConfig.readEntry("extraMountOptions", QStringList{}), {{"CRYFS_FRONTEND", "noninteractive"}});
|
||||
+ return process(NIXPKGS_CRYFS, arguments + backendConfig.readEntry("extraMountOptions", QStringList{}), {{"CRYFS_FRONTEND", "noninteractive"}});
|
||||
}
|
||||
|
||||
} // namespace PlasmaVault
|
||||
--
|
||||
2.33.1
|
||||
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
From 63571e28c65935f32567c0b179a096d62726b778 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Tuegel <ttuegel@mailbox.org>
|
||||
Date: Tue, 2 Nov 2021 06:00:32 -0500
|
||||
Subject: [PATCH 3/3] fusermount path
|
||||
|
||||
---
|
||||
kded/engine/fusebackend_p.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/kded/engine/fusebackend_p.cpp b/kded/engine/fusebackend_p.cpp
|
||||
index 91f3523..1c19d88 100644
|
||||
--- a/kded/engine/fusebackend_p.cpp
|
||||
+++ b/kded/engine/fusebackend_p.cpp
|
||||
@@ -86,7 +86,7 @@ QProcess *FuseBackend::process(const QString &executable, const QStringList &arg
|
||||
|
||||
QProcess *FuseBackend::fusermount(const QStringList &arguments) const
|
||||
{
|
||||
- return process("fusermount", arguments, {});
|
||||
+ return process(NIXPKGS_FUSERMOUNT, arguments, {});
|
||||
}
|
||||
|
||||
FutureResult<> FuseBackend::initialize(const QString &name, const Device &device, const MountPoint &mountPoint, const Vault::Payload &payload)
|
||||
--
|
||||
2.33.1
|
||||
|
||||
40
pkgs/desktops/plasma-5/plasma-vault/default.nix
Normal file
40
pkgs/desktops/plasma-5/plasma-vault/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules,
|
||||
|
||||
kactivities,
|
||||
plasma-framework,
|
||||
kwindowsystem,
|
||||
networkmanager-qt,
|
||||
libksysguard,
|
||||
|
||||
encfs,
|
||||
cryfs,
|
||||
fuse
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "plasma-vault";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
|
||||
patches = [
|
||||
./0001-encfs-path.patch
|
||||
./0002-cryfs-path.patch
|
||||
./0003-fusermount-path.patch
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
kactivities plasma-framework kwindowsystem libksysguard
|
||||
networkmanager-qt
|
||||
];
|
||||
|
||||
CXXFLAGS = [
|
||||
''-DNIXPKGS_ENCFS=\"${lib.getBin encfs}/bin/encfs\"''
|
||||
''-DNIXPKGS_ENCFSCTL=\"${lib.getBin encfs}/bin/encfsctl\"''
|
||||
|
||||
''-DNIXPKGS_CRYFS=\"${lib.getBin cryfs}/bin/cryfs\"''
|
||||
|
||||
''-DNIXPKGS_FUSERMOUNT=\"${lib.getBin fuse}/bin/fusermount\"''
|
||||
];
|
||||
|
||||
}
|
||||
6
pkgs/desktops/plasma-5/plasma-workspace-wallpapers.nix
Normal file
6
pkgs/desktops/plasma-5/plasma-workspace-wallpapers.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{ mkDerivation , extra-cmake-modules }:
|
||||
|
||||
mkDerivation {
|
||||
pname = "plasma-workspace-wallpapers";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
}
|
||||
84
pkgs/desktops/plasma-5/plasma-workspace/0001-startkde.patch
Normal file
84
pkgs/desktops/plasma-5/plasma-workspace/0001-startkde.patch
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
From 65ed69a38a9ffee21f0eb36de1f7a3f152111cad Mon Sep 17 00:00:00 2001
|
||||
From: Tom Hall <tahall256@protonmail.ch>
|
||||
Date: Mon, 7 Sep 2020 18:09:52 +0100
|
||||
Subject: [PATCH] startkde
|
||||
|
||||
---
|
||||
startkde/plasma-session/startup.cpp | 2 +-
|
||||
startkde/startplasma-waylandsession.cpp | 2 +-
|
||||
startkde/startplasma-x11.cpp | 2 +-
|
||||
startkde/startplasma.cpp | 8 ++++----
|
||||
4 files changed, 7 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/startkde/plasma-session/startup.cpp b/startkde/plasma-session/startup.cpp
|
||||
index 270744053..356160e96 100644
|
||||
--- a/startkde/plasma-session/startup.cpp
|
||||
+++ b/startkde/plasma-session/startup.cpp
|
||||
@@ -179,7 +179,7 @@ Startup::Startup(QObject *parent)
|
||||
}
|
||||
|
||||
// Keep for KF5; remove in KF6 (KInit will be gone then)
|
||||
- QProcess::execute(QStringLiteral(CMAKE_INSTALL_FULL_LIBEXECDIR_KF5 "/start_kdeinit_wrapper"), QStringList());
|
||||
+ QProcess::execute(QStringLiteral(NIXPKGS_START_KDEINIT_WRAPPER), QStringList());
|
||||
|
||||
KJob *phase1 = nullptr;
|
||||
m_lock.reset(new QEventLoopLocker);
|
||||
diff --git a/startkde/startplasma-wayland.cpp b/startkde/startplasma-wayland.cpp
|
||||
index 3a054a04f..b2e7ab3fb 100644
|
||||
--- a/startkde/startplasma-wayland.cpp
|
||||
+++ b/startkde/startplasma-wayland.cpp
|
||||
@@ -91,7 +91,7 @@ int main(int argc, char **argv)
|
||||
out << "startplasma-wayland: Shutting down...\n";
|
||||
|
||||
// Keep for KF5; remove in KF6 (KInit will be gone then)
|
||||
- runSync(QStringLiteral("kdeinit5_shutdown"), {});
|
||||
+ runSync(QStringLiteral(NIXPKGS_KDEINIT5_SHUTDOWN), {});
|
||||
|
||||
out << "startplasmacompositor: Shutting down...\n";
|
||||
cleanupPlasmaEnvironment(oldSystemdEnvironment);
|
||||
diff --git a/startkde/startplasma-x11.cpp b/startkde/startplasma-x11.cpp
|
||||
index d6b2c5439..534eeb0e5 100644
|
||||
--- a/startkde/startplasma-x11.cpp
|
||||
+++ b/startkde/startplasma-x11.cpp
|
||||
@@ -89,7 +89,7 @@ int main(int argc, char **argv)
|
||||
out << "startkde: Shutting down...\n";
|
||||
|
||||
// Keep for KF5; remove in KF6 (KInit will be gone then)
|
||||
- runSync(QStringLiteral("kdeinit5_shutdown"), {});
|
||||
+ runSync(QStringLiteral(NIXPKGS_KDEINIT5_SHUTDOWN), {});
|
||||
|
||||
cleanupPlasmaEnvironment(oldSystemdEnvironment);
|
||||
|
||||
diff --git a/startkde/startplasma.cpp b/startkde/startplasma.cpp
|
||||
index 008fdfcaf..72468f21c 100644
|
||||
--- a/startkde/startplasma.cpp
|
||||
+++ b/startkde/startplasma.cpp
|
||||
@@ -50,7 +50,7 @@ QTextStream out(stderr);
|
||||
void messageBox(const QString &text)
|
||||
{
|
||||
out << text;
|
||||
- runSync(QStringLiteral("xmessage"), {QStringLiteral("-geometry"), QStringLiteral("500x100"), text});
|
||||
+ runSync(QStringLiteral(NIXPKGS_XMESSAGE), {QStringLiteral("-geometry"), QStringLiteral("500x100"), text});
|
||||
}
|
||||
|
||||
QStringList allServices(const QLatin1String &prefix)
|
||||
@@ -412,7 +412,7 @@ void setupX11()
|
||||
// If the user has overwritten fonts, the cursor font may be different now
|
||||
// so don't move this up.
|
||||
|
||||
- runSync(QStringLiteral("xsetroot"), {QStringLiteral("-cursor_name"), QStringLiteral("left_ptr")});
|
||||
+ runSync(QStringLiteral(NIXPKGS_XSETROOT), {QStringLiteral("-cursor_name"), QStringLiteral("left_ptr")});
|
||||
}
|
||||
|
||||
void cleanupPlasmaEnvironment(const std::optional<QProcessEnvironment> &oldSystemdEnvironment)
|
||||
@@ -501,7 +501,7 @@ QProcess *setupKSplash()
|
||||
if (ksplashCfg.readEntry("Engine", QStringLiteral("KSplashQML")) == QLatin1String("KSplashQML")) {
|
||||
p = new QProcess;
|
||||
p->setProcessChannelMode(QProcess::ForwardedChannels);
|
||||
- p->start(QStringLiteral("ksplashqml"), {ksplashCfg.readEntry("Theme", QStringLiteral("Breeze"))});
|
||||
+ p->start(QStringLiteral(CMAKE_INSTALL_FULL_BINDIR "/ksplashqml"), {ksplashCfg.readEntry("Theme", QStringLiteral("Breeze"))});
|
||||
}
|
||||
}
|
||||
return p;
|
||||
--
|
||||
2.33.0
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
From 914d2ec5e669ecf8771cc1308028990f733fb8cc Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Tuegel <ttuegel@mailbox.org>
|
||||
Date: Wed, 5 Feb 2020 05:03:11 -0600
|
||||
Subject: [PATCH] absolute-wallpaper-install-dir
|
||||
|
||||
---
|
||||
sddm-theme/theme.conf.cmake | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/sddm-theme/theme.conf.cmake b/sddm-theme/theme.conf.cmake
|
||||
index a560da3..f723c1e 100644
|
||||
--- a/sddm-theme/theme.conf.cmake
|
||||
+++ b/sddm-theme/theme.conf.cmake
|
||||
@@ -4,5 +4,5 @@ logo=${KDE_INSTALL_FULL_DATADIR}/sddm/themes/breeze/default-logo.svg
|
||||
type=image
|
||||
color=#1d99f3
|
||||
fontSize=10
|
||||
-background=${KDE_INSTALL_FULL_WALLPAPERDIR}/Next/contents/images/5120x2880.jpg
|
||||
+background=${NIXPKGS_BREEZE_WALLPAPERS}/Next/contents/images/5120x2880.jpg
|
||||
needsFullUserModel=false
|
||||
--
|
||||
2.30.0
|
||||
|
||||
72
pkgs/desktops/plasma-5/plasma-workspace/default.nix
Normal file
72
pkgs/desktops/plasma-5/plasma-workspace/default.nix
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
{
|
||||
mkDerivation, lib,
|
||||
|
||||
extra-cmake-modules, kdoctools,
|
||||
|
||||
coreutils, dbus, gnugrep, gnused, isocodes, libdbusmenu, libSM, libXcursor,
|
||||
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, plasma-wayland-protocols,
|
||||
|
||||
qtgraphicaleffects, qtquickcontrols, qtquickcontrols2, qtscript, qttools,
|
||||
qtwayland, qtx11extras, qqc2-desktop-style,
|
||||
|
||||
pipewire, libdrm
|
||||
}:
|
||||
|
||||
let inherit (lib) getBin getLib; in
|
||||
|
||||
mkDerivation {
|
||||
pname = "plasma-workspace";
|
||||
passthru.providedSessions = [ "plasma" "plasmawayland" ];
|
||||
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [
|
||||
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
|
||||
|
||||
qtgraphicaleffects qtquickcontrols qtquickcontrols2 qtscript qtwayland
|
||||
qtx11extras qqc2-desktop-style
|
||||
|
||||
pipewire libdrm
|
||||
];
|
||||
propagatedUserEnvPkgs = [ qtgraphicaleffects ];
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
cmakeFlags = [
|
||||
''-DNIXPKGS_BREEZE_WALLPAPERS=${getBin breeze-qt5}/share/wallpapers''
|
||||
];
|
||||
|
||||
patches = [
|
||||
./0001-startkde.patch
|
||||
./0002-absolute-wallpaper-install-dir.patch
|
||||
];
|
||||
|
||||
# QT_INSTALL_BINS refers to qtbase, and qdbus is in qttools
|
||||
postPatch = ''
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace 'query_qmake(QtBinariesDir QT_INSTALL_BINS)' 'set(QtBinariesDir "${lib.getBin qttools}/bin")'
|
||||
'';
|
||||
|
||||
NIX_CFLAGS_COMPILE = [
|
||||
''-DNIXPKGS_XMESSAGE="${getBin xmessage}/bin/xmessage"''
|
||||
''-DNIXPKGS_XRDB="${getBin xrdb}/bin/xrdb"''
|
||||
''-DNIXPKGS_XSETROOT="${getBin xsetroot}/bin/xsetroot"''
|
||||
''-DNIXPKGS_XPROP="${getBin xprop}/bin/xprop"''
|
||||
''-DNIXPKGS_DBUS_UPDATE_ACTIVATION_ENVIRONMENT="${getBin dbus}/bin/dbus-update-activation-environment"''
|
||||
''-DNIXPKGS_START_KDEINIT_WRAPPER="${getLib kinit}/libexec/kf5/start_kdeinit_wrapper"''
|
||||
''-DNIXPKGS_KDEINIT5_SHUTDOWN="${getBin kinit}/bin/kdeinit5_shutdown"''
|
||||
];
|
||||
}
|
||||
15
pkgs/desktops/plasma-5/polkit-kde-agent.nix
Normal file
15
pkgs/desktops/plasma-5/polkit-kde-agent.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
mkDerivation, lib, extra-cmake-modules,
|
||||
kcoreaddons, kconfig, kcrash, kdbusaddons, ki18n, kiconthemes, knotifications,
|
||||
kwidgetsaddons, kwindowsystem, polkit-qt, qtbase
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "polkit-kde-agent";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
propagatedBuildInputs = [
|
||||
kdbusaddons kwidgetsaddons kcoreaddons kcrash kconfig ki18n kiconthemes
|
||||
knotifications kwindowsystem polkit-qt
|
||||
];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
17
pkgs/desktops/plasma-5/powerdevil.nix
Normal file
17
pkgs/desktops/plasma-5/powerdevil.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
mkDerivation, fetchpatch,
|
||||
extra-cmake-modules, kdoctools,
|
||||
bluez-qt, kactivities, kauth, kconfig, kdbusaddons,
|
||||
kglobalaccel, ki18n, kidletime, kio, knotifyconfig, kwayland, libkscreen,
|
||||
networkmanager-qt, plasma-workspace, qtx11extras, solid, udev
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "powerdevil";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [
|
||||
kconfig kdbusaddons knotifyconfig solid udev bluez-qt kactivities kauth
|
||||
kglobalaccel ki18n kio kidletime kwayland libkscreen
|
||||
networkmanager-qt plasma-workspace qtx11extras
|
||||
];
|
||||
}
|
||||
26
pkgs/desktops/plasma-5/qqc2-breeze-style.nix
Normal file
26
pkgs/desktops/plasma-5/qqc2-breeze-style.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ mkDerivation
|
||||
, lib
|
||||
, extra-cmake-modules
|
||||
, kconfig
|
||||
, kconfigwidgets
|
||||
, kdoctools
|
||||
, kguiaddons
|
||||
, kiconthemes
|
||||
, kirigami2
|
||||
, qtquickcontrols2
|
||||
, qtx11extras
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "qqc2-breeze-style";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [
|
||||
kconfig
|
||||
kconfigwidgets
|
||||
kguiaddons
|
||||
kiconthemes
|
||||
kirigami2
|
||||
qtquickcontrols2
|
||||
qtx11extras
|
||||
];
|
||||
}
|
||||
35
pkgs/desktops/plasma-5/sddm-kcm.nix
Normal file
35
pkgs/desktops/plasma-5/sddm-kcm.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ mkDerivation
|
||||
, lib
|
||||
, extra-cmake-modules
|
||||
, shared-mime-info
|
||||
, libpthreadstubs
|
||||
, libXcursor
|
||||
, libXdmcp
|
||||
, qtbase
|
||||
, qtquickcontrols2
|
||||
, qtx11extras
|
||||
, karchive
|
||||
, kcmutils
|
||||
, kdeclarative
|
||||
, ki18n
|
||||
, kio
|
||||
, knewstuff
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "sddm-kcm";
|
||||
nativeBuildInputs = [ extra-cmake-modules shared-mime-info ];
|
||||
buildInputs = [
|
||||
libpthreadstubs
|
||||
libXcursor
|
||||
libXdmcp
|
||||
qtquickcontrols2
|
||||
qtx11extras
|
||||
karchive
|
||||
kcmutils
|
||||
kdeclarative
|
||||
ki18n
|
||||
kio
|
||||
knewstuff
|
||||
];
|
||||
}
|
||||
430
pkgs/desktops/plasma-5/srcs.nix
Normal file
430
pkgs/desktops/plasma-5/srcs.nix
Normal file
|
|
@ -0,0 +1,430 @@
|
|||
# DO NOT EDIT! This file is generated automatically.
|
||||
# Command: ./maintainers/scripts/fetch-kde-qt.sh pkgs/desktops/plasma-5
|
||||
{ fetchurl, mirror }:
|
||||
|
||||
{
|
||||
bluedevil = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/bluedevil-5.24.5.tar.xz";
|
||||
sha256 = "1yhynfpgm2cwvimh63hihg5dm0hzjp20364bvjyyh108830rjsf9";
|
||||
name = "bluedevil-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
breeze = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/breeze-5.24.5.tar.xz";
|
||||
sha256 = "18zhm9my0vhwiq95v3p48z8s5m4a5c7kw8n144ykqlm51nssc9c5";
|
||||
name = "breeze-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
breeze-grub = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/breeze-grub-5.24.5.tar.xz";
|
||||
sha256 = "02lcv23l3zr0g6nggmrxz4pgq852fir9yramhaxmcg634pxiacni";
|
||||
name = "breeze-grub-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
breeze-gtk = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/breeze-gtk-5.24.5.tar.xz";
|
||||
sha256 = "0c25z69lyjczm05jraqk2f09sipkhpsz5zirwzqdq3apip06qw93";
|
||||
name = "breeze-gtk-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
breeze-plymouth = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/breeze-plymouth-5.24.5.tar.xz";
|
||||
sha256 = "044sbffr4sqvgkfbraa4rvlsih7zz9b300hipp33mwhpzyjjcpdc";
|
||||
name = "breeze-plymouth-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
discover = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/discover-5.24.5.tar.xz";
|
||||
sha256 = "18a8z9ifyyjmmc620dsh491vb1q3q9bxd8gfjf5k87mgwmg1wmwk";
|
||||
name = "discover-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
drkonqi = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/drkonqi-5.24.5.tar.xz";
|
||||
sha256 = "1ps1p8pvp51rswynbv337qr3qj2z7r7kd9qpxgcrha9pql01h5gy";
|
||||
name = "drkonqi-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
kactivitymanagerd = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/kactivitymanagerd-5.24.5.tar.xz";
|
||||
sha256 = "0j6d50cjry4j3vzxb6hd4w95y2h3l0yfhyrhl693njr64aq7d4pa";
|
||||
name = "kactivitymanagerd-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
kde-cli-tools = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/kde-cli-tools-5.24.5.tar.xz";
|
||||
sha256 = "0afksrxd6mq9rcvh3g8y05kl0la4wmn1yksif8p1bcxpd4sdvw77";
|
||||
name = "kde-cli-tools-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
kde-gtk-config = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/kde-gtk-config-5.24.5.tar.xz";
|
||||
sha256 = "0sg8kqlkklvjhj69z5wzhvi0hddxa192j4vc4wc9hmfl1wirr8cq";
|
||||
name = "kde-gtk-config-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
kdecoration = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/kdecoration-5.24.5.tar.xz";
|
||||
sha256 = "1hjjl6k09zi8n9nblbcm69c3br6d4dhzaw55xyygglaz6kb8fc17";
|
||||
name = "kdecoration-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
kdeplasma-addons = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/kdeplasma-addons-5.24.5.tar.xz";
|
||||
sha256 = "03p8wmsb5nl7j6kwl6j8nwlf6v7snh933jyglgp2vnclqp1jpd9x";
|
||||
name = "kdeplasma-addons-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
kgamma5 = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/kgamma5-5.24.5.tar.xz";
|
||||
sha256 = "1i7i3dc5qfb3v9hz9w9hszr8jbbdbfq0b59a4bh1p6xakxx8k1l0";
|
||||
name = "kgamma5-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
khotkeys = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/khotkeys-5.24.5.tar.xz";
|
||||
sha256 = "06m7yrs75arwdfrkpkn9b5kiz2xlrsxlpsjr18j1pjhxras0f8vs";
|
||||
name = "khotkeys-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
kinfocenter = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/kinfocenter-5.24.5.tar.xz";
|
||||
sha256 = "0c2bq7m8c9r17s8qalp4cdz1qimzwnvh9wrba4rqcmxwbv043ln1";
|
||||
name = "kinfocenter-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
kmenuedit = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/kmenuedit-5.24.5.tar.xz";
|
||||
sha256 = "02il6bhayjni0jsx1d1cnmxv5yc7r0d02s2v6cs87fbdrnl7d9vq";
|
||||
name = "kmenuedit-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
kscreen = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/kscreen-5.24.5.tar.xz";
|
||||
sha256 = "1g5mlc78giq8zrpyq6d2jhqgyj6yh2nhbqv6wjm9cdbq4nnm3hyr";
|
||||
name = "kscreen-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
kscreenlocker = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/kscreenlocker-5.24.5.tar.xz";
|
||||
sha256 = "13prkdwxd200ps4cy6rf2n4g9ll6fp1f93dk1njr9ilzbj2a2w1j";
|
||||
name = "kscreenlocker-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
ksshaskpass = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/ksshaskpass-5.24.5.tar.xz";
|
||||
sha256 = "1jw3hfnlplqsss1h49p5f3722qc22ln22sahs5ypsxszmqihpqiz";
|
||||
name = "ksshaskpass-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
ksystemstats = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/ksystemstats-5.24.5.tar.xz";
|
||||
sha256 = "1xsrlwm1hhagwjyjm240bfmri24z88v95m9pz95dpbcllkwdib0b";
|
||||
name = "ksystemstats-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
kwallet-pam = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/kwallet-pam-5.24.5.tar.xz";
|
||||
sha256 = "1smclklxcfbxxxi3lgw2p6wmvj50fg40323j1b8p5z731ywdk3i3";
|
||||
name = "kwallet-pam-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
kwayland-integration = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/kwayland-integration-5.24.5.tar.xz";
|
||||
sha256 = "1v12631xdjdp2wkjvyls8g0sv18amy7g4mddrh45pybhpc3rcsl0";
|
||||
name = "kwayland-integration-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
kwayland-server = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/kwayland-server-5.24.5.tar.xz";
|
||||
sha256 = "0ydj6p489psqblqd88lk04q62qn1spa1m0zdjq8d32a4g4lvxnid";
|
||||
name = "kwayland-server-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
kwin = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/kwin-5.24.5.tar.xz";
|
||||
sha256 = "10mgbs1mbhjzbwx07q77wdzhj11yc156j75fbvy8mszb9hjiappk";
|
||||
name = "kwin-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
kwrited = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/kwrited-5.24.5.tar.xz";
|
||||
sha256 = "0gfjvj8wnfgb3s2daz7xpg9flc8xv6hk12z6ckbchq71w4gs6132";
|
||||
name = "kwrited-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
layer-shell-qt = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/layer-shell-qt-5.24.5.tar.xz";
|
||||
sha256 = "0ydjfxrkmpi052gfhkccsp9m5az3z6qiggb5wx6cjz39q06614gm";
|
||||
name = "layer-shell-qt-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
libkscreen = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/libkscreen-5.24.5.tar.xz";
|
||||
sha256 = "1jbgq1ddl0q5y8cx4m7k5q38gl0kxv929wxr3hn3vr906fpiiwbz";
|
||||
name = "libkscreen-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
libksysguard = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/libksysguard-5.24.5.tar.xz";
|
||||
sha256 = "1v21xckvwx6xkiqihv3pc2ps5mmc4ahp5vadxm3lrh0pdqxb6v5h";
|
||||
name = "libksysguard-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
milou = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/milou-5.24.5.tar.xz";
|
||||
sha256 = "1rh5zy1x427cv07zmikmh0rmviz7vcvnz2pyravyfzaxay5lwnf1";
|
||||
name = "milou-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
oxygen = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/oxygen-5.24.5.tar.xz";
|
||||
sha256 = "1gh06wwm6gdjpsbjlxnrrlgsfd5w7lb0pddcml9l2w0dvlgfyn1v";
|
||||
name = "oxygen-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
plasma-browser-integration = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/plasma-browser-integration-5.24.5.tar.xz";
|
||||
sha256 = "1xybyn6vsahr5j0g57bsfxmz78w35ibzavcax1inrdlnb7sblrqv";
|
||||
name = "plasma-browser-integration-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
plasma-desktop = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/plasma-desktop-5.24.5.tar.xz";
|
||||
sha256 = "0iic01iwg4bkp8sfp4mbm5lvbj98wjcyi0k79jfr1sx78dn7jn5g";
|
||||
name = "plasma-desktop-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
plasma-disks = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/plasma-disks-5.24.5.tar.xz";
|
||||
sha256 = "1x3lm5cnwa51i8kcmp7pq29fpa9za3ypsmmldf2jbisawjnrb50k";
|
||||
name = "plasma-disks-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
plasma-firewall = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/plasma-firewall-5.24.5.tar.xz";
|
||||
sha256 = "0mk9plb1rwng77qy55c7y7ga4fkafan89bf4vqsc4i9nfn49d944";
|
||||
name = "plasma-firewall-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
plasma-integration = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/plasma-integration-5.24.5.tar.xz";
|
||||
sha256 = "0ynzx99jn4fqzbrv9mav0sw06rzf7mm1rv17g17vsxijwbhr0i6d";
|
||||
name = "plasma-integration-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
plasma-mobile = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/plasma-mobile-5.24.5.tar.xz";
|
||||
sha256 = "0400rwx4pbz4kfy06f2vxchlf9vr6dx71wsi6vir3vdmvl43yazd";
|
||||
name = "plasma-mobile-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
plasma-nano = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/plasma-nano-5.24.5.tar.xz";
|
||||
sha256 = "0zxvqzg1p6ci6581bh4nhsq2p6pq66pmvs93zlj89ml4am176213";
|
||||
name = "plasma-nano-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
plasma-nm = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/plasma-nm-5.24.5.tar.xz";
|
||||
sha256 = "0adl5wfrz16hc7j64830cx1ga0bh9zd8bff95a30zdiggp7jc45f";
|
||||
name = "plasma-nm-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
plasma-pa = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/plasma-pa-5.24.5.tar.xz";
|
||||
sha256 = "1lgq2lydl65bh01043ji7kkignrb5lfcvbhy0g4g7lw778whv3q6";
|
||||
name = "plasma-pa-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
plasma-sdk = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/plasma-sdk-5.24.5.tar.xz";
|
||||
sha256 = "0d35sckjvi77b3475pfh1ixdsdx0m7b0hbsx5rbjgj4b05cdpm0w";
|
||||
name = "plasma-sdk-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
plasma-systemmonitor = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/plasma-systemmonitor-5.24.5.tar.xz";
|
||||
sha256 = "1vx0w5kmnp3chhydas7ijy8h1xf6dggd1ryhbr3k9qz2qihxfsqm";
|
||||
name = "plasma-systemmonitor-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
plasma-tests = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/plasma-tests-5.24.5.tar.xz";
|
||||
sha256 = "1aqmmix0ds9vg4cjj8dagaya10ainhcciixamdylz1p7vgzpsrkx";
|
||||
name = "plasma-tests-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
plasma-thunderbolt = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/plasma-thunderbolt-5.24.5.tar.xz";
|
||||
sha256 = "1q0r9l2b06qkbyxa25lvqdwz0rgcjvp48gwkw0xhhaf6fyaai1cl";
|
||||
name = "plasma-thunderbolt-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
plasma-vault = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/plasma-vault-5.24.5.tar.xz";
|
||||
sha256 = "16cyzyfzwqwqsg7hhg576acvxvbd12b7mznvicrrqnyf4wvw68l1";
|
||||
name = "plasma-vault-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
plasma-workspace = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/plasma-workspace-5.24.5.tar.xz";
|
||||
sha256 = "1xk4424az7sgb0kyysr1s2x756vj4km50xxzkn1s1kxyw28jd4dr";
|
||||
name = "plasma-workspace-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
plasma-workspace-wallpapers = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/plasma-workspace-wallpapers-5.24.5.tar.xz";
|
||||
sha256 = "0aabmd4zswmzdy958y1yq0yp1v9i8kzl959d6r4pwi0lmhr6g6qi";
|
||||
name = "plasma-workspace-wallpapers-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
plymouth-kcm = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/plymouth-kcm-5.24.5.tar.xz";
|
||||
sha256 = "04m4129hxgq4g9v8gvi8q0hzhqzd866j3j1ffxs5vfd27r155wcr";
|
||||
name = "plymouth-kcm-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
polkit-kde-agent = {
|
||||
version = "1-5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/polkit-kde-agent-1-5.24.5.tar.xz";
|
||||
sha256 = "0w78c59nm71xnd5prm035z94r5bzlqr0fyri43a8vrfyyb21r9l9";
|
||||
name = "polkit-kde-agent-1-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
powerdevil = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/powerdevil-5.24.5.tar.xz";
|
||||
sha256 = "1wr3rk318j93rnyh24icl4yxdj40zasymlddc71ram80fswa2k4n";
|
||||
name = "powerdevil-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
qqc2-breeze-style = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/qqc2-breeze-style-5.24.5.tar.xz";
|
||||
sha256 = "1m0xnx46zkv1dlwkgns1ibgsl934jbcfz35jlm4p8l6n1y2jcjyg";
|
||||
name = "qqc2-breeze-style-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
sddm-kcm = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/sddm-kcm-5.24.5.tar.xz";
|
||||
sha256 = "15z5hfpczi73vqjfj9z2ai2r4187fyrvfnikcfb18g2bdh1n54ng";
|
||||
name = "sddm-kcm-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
systemsettings = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/systemsettings-5.24.5.tar.xz";
|
||||
sha256 = "1rg9zx7fhrg91nlarv0cz384agbik47sccj7hhshnxnq1czvawjv";
|
||||
name = "systemsettings-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
xdg-desktop-portal-kde = {
|
||||
version = "5.24.5";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/plasma/5.24.5/xdg-desktop-portal-kde-5.24.5.tar.xz";
|
||||
sha256 = "1zn6wln8pccj1x3labms7xippn6xgv4aamwpmzk2rvwss9jwz75m";
|
||||
name = "xdg-desktop-portal-kde-5.24.5.tar.xz";
|
||||
};
|
||||
};
|
||||
}
|
||||
17
pkgs/desktops/plasma-5/systemsettings.nix
Normal file
17
pkgs/desktops/plasma-5/systemsettings.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
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
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "systemsettings";
|
||||
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
|
||||
];
|
||||
outputs = [ "bin" "dev" "out" ];
|
||||
}
|
||||
19
pkgs/desktops/plasma-5/xdg-desktop-portal-kde.nix
Normal file
19
pkgs/desktops/plasma-5/xdg-desktop-portal-kde.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules, gettext, kdoctools,
|
||||
cups, libepoxy, mesa, pcre, pipewire, wayland, wayland-protocols,
|
||||
kcoreaddons, knotifications, kwayland, kwidgetsaddons, kwindowsystem,
|
||||
kirigami2, kdeclarative, plasma-framework, plasma-wayland-protocols, kio,
|
||||
qtbase
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "xdg-desktop-portal-kde";
|
||||
nativeBuildInputs = [ extra-cmake-modules gettext kdoctools ];
|
||||
buildInputs = [
|
||||
cups libepoxy mesa pcre pipewire wayland wayland-protocols
|
||||
|
||||
kio kcoreaddons knotifications kwayland kwidgetsaddons kwindowsystem
|
||||
kirigami2 kdeclarative plasma-framework plasma-wayland-protocols
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue