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

15 lines
447 B
Nix

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