1{
2 mkDerivation,
3 propagate,
4 extra-cmake-modules,
5 wayland-scanner,
6 kconfig,
7 kwayland,
8 plasma-wayland-protocols,
9 wayland,
10 libXrandr,
11 qtx11extras,
12 qttools,
13}:
14
15mkDerivation {
16 pname = "libkscreen";
17 nativeBuildInputs = [
18 extra-cmake-modules
19 wayland-scanner
20 ];
21 buildInputs = [
22 kconfig
23 kwayland
24 plasma-wayland-protocols
25 wayland
26 libXrandr
27 qtx11extras
28 qttools
29 ];
30 outputs = [
31 "out"
32 "dev"
33 ];
34 patches = [
35 ./libkscreen-backends-path.patch
36 ];
37 preConfigure = ''
38 NIX_CFLAGS_COMPILE+=" -DNIXPKGS_LIBKSCREEN_BACKENDS=\"''${!outputBin}/$qtPluginPrefix/kf5/kscreen\""
39 '';
40 setupHook = propagate "out";
41}