Co-authored-by: 𝑷𝒉𝒊𝒍𝒐𝒄𝒂𝒍𝒚𝒔𝒕 <regime_skylark.0y@icloud.com> Co-authored-by: adisbladis <adisbladis@gmail.com>
70 lines
1.1 KiB
Nix
70 lines
1.1 KiB
Nix
{
|
|
mkKdeDerivation,
|
|
pkg-config,
|
|
qtquick3d,
|
|
qtsensors,
|
|
qttools,
|
|
qtvirtualkeyboard,
|
|
qtwayland,
|
|
libinput,
|
|
libxcvt,
|
|
xwayland,
|
|
libcanberra,
|
|
libdisplay-info,
|
|
libei,
|
|
libevdev,
|
|
libgbm,
|
|
lcms2,
|
|
pipewire,
|
|
krunner,
|
|
python3,
|
|
}:
|
|
mkKdeDerivation {
|
|
pname = "kwin";
|
|
|
|
patches = [
|
|
./0003-plugins-qpa-allow-using-nixos-wrapper.patch
|
|
./0001-NixOS-Unwrap-executable-name-for-.desktop-search.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
|
|
|
|
libgbm
|
|
lcms2
|
|
libcanberra
|
|
libdisplay-info
|
|
libei
|
|
libevdev
|
|
libinput
|
|
pipewire
|
|
|
|
libxcvt
|
|
# we need to provide this so it knows our xwayland supports new features
|
|
xwayland
|
|
];
|
|
|
|
# plugin QML relies on non-global imports
|
|
dontQmlLint = true;
|
|
}
|