depot/third_party/nixpkgs/pkgs/kde/plasma/kwin/default.nix

66 lines
1.3 KiB
Nix

{
mkKdeDerivation,
fetchpatch,
pkg-config,
qtquick3d,
qtsensors,
qttools,
qtvirtualkeyboard,
qtwayland,
libinput,
xorg,
libdisplay-info,
mesa,
lcms2,
libcap,
pipewire,
krunner,
python3,
}:
mkKdeDerivation {
pname = "kwin";
patches = [
# Follow symlinks when searching for aurorae configs
# FIXME(later): upstream?
./0001-follow-symlinks.patch
(fetchpatch {
url = "https://invent.kde.org/plasma/kwin/-/commit/711c5bb43f2823766d5189dc8d567c8f4cec253c.patch";
sha256 = "sha256-f763RGU1O+oBkBa/MloPubBbAH//p1iLInCuRZGnVUc=";
})
# The rest are NixOS-specific hacks
./0003-plugins-qpa-allow-using-nixos-wrapper.patch
./0001-NixOS-Unwrap-executable-name-for-.desktop-search.patch
./0001-Lower-CAP_SYS_NICE-from-the-ambient-set.patch
];
postPatch = ''
patchShebangs src/plugins/strip-effect-metadata.py
'';
# TZDIR may be unset when running through the kwin_wayland wrapper,
# but we need it for the lockscreen clock to render
qtWrapperArgs = [
"--set-default TZDIR /etc/zoneinfo"
];
extraNativeBuildInputs = [pkg-config python3];
extraBuildInputs = [
qtquick3d
qtsensors
qttools
qtvirtualkeyboard
qtwayland
krunner
mesa # libgbm
lcms2
libcap
libdisplay-info
libinput
pipewire
xorg.libxcvt
];
}