2017-05-26 22:44:36 +02:00
|
|
|
{
|
2017-05-26 23:22:27 +02:00
|
|
|
mkDerivation, lib, copyPathsToStore, propagate,
|
2017-05-26 22:44:36 +02:00
|
|
|
extra-cmake-modules,
|
2019-09-29 19:27:36 +02:00
|
|
|
kwayland, libXrandr, qtbase, qtx11extras
|
2017-04-14 12:39:38 +02:00
|
|
|
}:
|
|
|
|
|
2017-05-15 18:44:58 +02:00
|
|
|
mkDerivation {
|
2017-04-14 12:39:38 +02:00
|
|
|
name = "libkscreen";
|
2019-09-29 19:27:36 +02:00
|
|
|
meta = {
|
|
|
|
broken = builtins.compareVersions qtbase.version "5.12.0" < 0;
|
|
|
|
};
|
2017-05-15 18:44:58 +02:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules ];
|
2017-05-26 22:44:36 +02:00
|
|
|
buildInputs = [ kwayland libXrandr qtx11extras ];
|
|
|
|
outputs = [ "out" "dev" ];
|
2017-04-14 12:39:38 +02:00
|
|
|
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
|
|
|
preConfigure = ''
|
2017-05-26 22:44:36 +02:00
|
|
|
NIX_CFLAGS_COMPILE+=" -DNIXPKGS_LIBKSCREEN_BACKENDS=\"''${!outputBin}/$qtPluginPrefix/kf5/kscreen\""
|
2017-04-14 12:39:38 +02:00
|
|
|
'';
|
2017-05-26 23:22:27 +02:00
|
|
|
setupHook = propagate "out";
|
2017-04-14 12:39:38 +02:00
|
|
|
}
|