2020-04-24 23:36:52 +00:00
|
|
|
{
|
2020-09-25 04:45:31 +00:00
|
|
|
mkDerivation, lib, propagate,
|
2020-04-24 23:36:52 +00:00
|
|
|
extra-cmake-modules,
|
2021-12-06 16:07:01 +00:00
|
|
|
qtbase,
|
|
|
|
wayland-scanner, kwayland,
|
|
|
|
plasma-wayland-protocols, wayland,
|
|
|
|
libXrandr, qtx11extras
|
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 ];
|
|
|
|
buildInputs = [ kwayland plasma-wayland-protocols wayland libXrandr qtx11extras ];
|
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";
|
|
|
|
}
|