nixpkgs/pkgs/desktops/plasma-5/libkscreen/default.nix
2017-06-18 08:44:45 -05:00

17 lines
469 B
Nix

{
mkDerivation, lib, copyPathsToStore,
extra-cmake-modules,
kwayland, libXrandr, qtx11extras
}:
mkDerivation {
name = "libkscreen";
nativeBuildInputs = [ extra-cmake-modules ];
buildInputs = [ kwayland libXrandr qtx11extras ];
outputs = [ "out" "dev" ];
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
preConfigure = ''
NIX_CFLAGS_COMPILE+=" -DNIXPKGS_LIBKSCREEN_BACKENDS=\"''${!outputBin}/$qtPluginPrefix/kf5/kscreen\""
'';
}