nixpkgs-suyu/pkgs/desktops/plasma-5/libkscreen/default.nix
Yaroslav Bolyukin a8e5e90b1a
libkscreen: add missing dependencies
Signed-off-by: Yaroslav Bolyukin <iam@lach.pw>
2021-10-22 23:22:10 +03:00

22 lines
597 B
Nix

{
mkDerivation, lib, propagate,
extra-cmake-modules,
qtbase,
wayland-scanner, kwayland,
plasma-wayland-protocols, wayland,
libXrandr, qtx11extras
}:
mkDerivation {
name = "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";
}