2024-02-29 20:09:43 +00:00
|
|
|
{
|
|
|
|
mkKdeDerivation,
|
2024-06-08 23:52:47 +00:00
|
|
|
fetchpatch,
|
2024-02-29 20:09:43 +00:00
|
|
|
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
|
2024-06-08 23:52:47 +00:00
|
|
|
(fetchpatch {
|
|
|
|
url = "https://invent.kde.org/plasma/kwin/-/commit/711c5bb43f2823766d5189dc8d567c8f4cec253c.patch";
|
|
|
|
sha256 = "sha256-f763RGU1O+oBkBa/MloPubBbAH//p1iLInCuRZGnVUc=";
|
|
|
|
})
|
2024-02-29 20:09:43 +00:00
|
|
|
# The rest are NixOS-specific hacks
|
|
|
|
./0003-plugins-qpa-allow-using-nixos-wrapper.patch
|
|
|
|
./0001-NixOS-Unwrap-executable-name-for-.desktop-search.patch
|
2024-05-15 15:35:15 +00:00
|
|
|
./0001-Lower-CAP_SYS_NICE-from-the-ambient-set.patch
|
2024-02-29 20:09:43 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs src/plugins/strip-effect-metadata.py
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# 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"
|
|
|
|
];
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
extraNativeBuildInputs = [pkg-config python3];
|
|
|
|
extraBuildInputs = [
|
|
|
|
qtquick3d
|
|
|
|
qtsensors
|
|
|
|
qttools
|
|
|
|
qtvirtualkeyboard
|
|
|
|
qtwayland
|
|
|
|
|
|
|
|
krunner
|
|
|
|
|
|
|
|
mesa # libgbm
|
|
|
|
lcms2
|
|
|
|
libcap
|
|
|
|
libdisplay-info
|
|
|
|
libinput
|
|
|
|
pipewire
|
|
|
|
|
|
|
|
xorg.libxcvt
|
|
|
|
];
|
|
|
|
}
|