depot/third_party/nixpkgs/pkgs/kde/plasma/kwin/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

55 lines
955 B
Nix

{
mkKdeDerivation,
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
# 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
'';
extraNativeBuildInputs = [pkg-config python3];
extraBuildInputs = [
qtquick3d
qtsensors
qttools
qtvirtualkeyboard
qtwayland
krunner
mesa # libgbm
lcms2
libcap
libdisplay-info
libinput
pipewire
xorg.libxcvt
];
}