nixpkgs-suyu/pkgs/desktops/plasma-5/libkscreen/default.nix
Thomas Tuegel c4c614c232
libkscreen: hardcode backends path
libkscreen provides all available kscreen backends, so there is no reason to
search the environment for plugins.
2017-04-28 05:49:33 -05:00

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\""
'';
}