2022-10-21 18:38:19 +00:00
|
|
|
{ mkDerivation
|
|
|
|
, lib
|
|
|
|
, propagate
|
|
|
|
, extra-cmake-modules
|
|
|
|
, qtbase
|
|
|
|
, wayland-scanner
|
|
|
|
, kconfig
|
|
|
|
, kwayland
|
|
|
|
, plasma-wayland-protocols
|
|
|
|
, wayland
|
|
|
|
, libXrandr
|
|
|
|
, qtx11extras
|
2022-10-30 15:09:59 +00:00
|
|
|
, qttools
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation {
|
2022-03-10 19:12:11 +00:00
|
|
|
pname = "libkscreen";
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules wayland-scanner ];
|
2022-10-30 15:09:59 +00:00
|
|
|
buildInputs = [ kconfig kwayland plasma-wayland-protocols wayland libXrandr qtx11extras qttools ];
|
2020-04-24 23:36:52 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
2020-09-25 04:45:31 +00:00
|
|
|
patches = [
|
|
|
|
./libkscreen-backends-path.patch
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
preConfigure = ''
|
|
|
|
NIX_CFLAGS_COMPILE+=" -DNIXPKGS_LIBKSCREEN_BACKENDS=\"''${!outputBin}/$qtPluginPrefix/kf5/kscreen\""
|
|
|
|
'';
|
|
|
|
setupHook = propagate "out";
|
|
|
|
}
|