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,
|
|
|
|
kwayland, libXrandr, qtbase, qtx11extras
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation {
|
|
|
|
name = "libkscreen";
|
|
|
|
meta = {
|
2020-12-25 13:55:36 +00:00
|
|
|
broken = lib.versionOlder qtbase.version "5.15.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
nativeBuildInputs = [ extra-cmake-modules ];
|
|
|
|
buildInputs = [ kwayland libXrandr qtx11extras ];
|
|
|
|
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";
|
|
|
|
}
|