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