c4c614c232
libkscreen provides all available kscreen backends, so there is no reason to search the environment for plugins.
19 lines
461 B
Nix
19 lines
461 B
Nix
{ plasmaPackage, lib, copyPathsToStore
|
|
, extra-cmake-modules
|
|
, kwayland, libXrandr
|
|
, qtx11extras
|
|
}:
|
|
|
|
plasmaPackage {
|
|
name = "libkscreen";
|
|
nativeBuildInputs = [
|
|
extra-cmake-modules
|
|
];
|
|
propagatedBuildInputs = [
|
|
kwayland libXrandr qtx11extras
|
|
];
|
|
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
|
preConfigure = ''
|
|
NIX_CFLAGS_COMPILE+=" -DNIXPKGS_LIBKSCREEN_BACKENDS=\"''${!outputLib}/lib/qt5/plugins/kf5/kscreen\""
|
|
'';
|
|
}
|