2022-10-07 12:39:27 +02:00
|
|
|
{ mkDerivation
|
|
|
|
, propagate
|
|
|
|
, extra-cmake-modules
|
|
|
|
, wayland-scanner
|
|
|
|
, kconfig
|
|
|
|
, kwayland
|
|
|
|
, plasma-wayland-protocols
|
|
|
|
, wayland
|
|
|
|
, libXrandr
|
|
|
|
, qtx11extras
|
2022-10-27 07:49:30 +02:00
|
|
|
, qttools
|
2017-04-14 12:39:38 +02:00
|
|
|
}:
|
|
|
|
|
2017-05-15 18:44:58 +02:00
|
|
|
mkDerivation {
|
2022-03-06 22:28:56 +01:00
|
|
|
pname = "libkscreen";
|
2021-09-27 21:52:51 +02:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules wayland-scanner ];
|
2022-10-27 07:49:30 +02:00
|
|
|
buildInputs = [ kconfig kwayland plasma-wayland-protocols wayland libXrandr qtx11extras qttools ];
|
2017-05-26 22:44:36 +02:00
|
|
|
outputs = [ "out" "dev" ];
|
2020-08-25 11:43:59 +02:00
|
|
|
patches = [
|
|
|
|
./libkscreen-backends-path.patch
|
|
|
|
];
|
2017-04-14 12:39:38 +02:00
|
|
|
preConfigure = ''
|
2017-05-26 22:44:36 +02:00
|
|
|
NIX_CFLAGS_COMPILE+=" -DNIXPKGS_LIBKSCREEN_BACKENDS=\"''${!outputBin}/$qtPluginPrefix/kf5/kscreen\""
|
2017-04-14 12:39:38 +02:00
|
|
|
'';
|
2017-05-26 23:22:27 +02:00
|
|
|
setupHook = propagate "out";
|
2017-04-14 12:39:38 +02:00
|
|
|
}
|