2017-05-26 13:44:36 -07:00
|
|
|
{
|
2020-08-25 02:43:59 -07:00
|
|
|
mkDerivation, lib, propagate,
|
2017-05-26 13:44:36 -07:00
|
|
|
extra-cmake-modules,
|
2019-09-29 10:27:36 -07:00
|
|
|
kwayland, libXrandr, qtbase, qtx11extras
|
2017-04-14 03:39:38 -07:00
|
|
|
}:
|
|
|
|
|
2017-05-15 09:44:58 -07:00
|
|
|
mkDerivation {
|
2017-04-14 03:39:38 -07:00
|
|
|
name = "libkscreen";
|
2017-05-15 09:44:58 -07:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules ];
|
2017-05-26 13:44:36 -07:00
|
|
|
buildInputs = [ kwayland libXrandr qtx11extras ];
|
|
|
|
outputs = [ "out" "dev" ];
|
2020-08-25 02:43:59 -07:00
|
|
|
patches = [
|
|
|
|
./libkscreen-backends-path.patch
|
|
|
|
];
|
2017-04-14 03:39:38 -07:00
|
|
|
preConfigure = ''
|
2017-05-26 13:44:36 -07:00
|
|
|
NIX_CFLAGS_COMPILE+=" -DNIXPKGS_LIBKSCREEN_BACKENDS=\"''${!outputBin}/$qtPluginPrefix/kf5/kscreen\""
|
2017-04-14 03:39:38 -07:00
|
|
|
'';
|
2017-05-26 14:22:27 -07:00
|
|
|
setupHook = propagate "out";
|
2017-04-14 03:39:38 -07:00
|
|
|
}
|