nixpkgs-suyu/pkgs/desktops/plasma-5/libkscreen/default.nix

18 lines
511 B
Nix
Raw Normal View History

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,
kwayland, libXrandr, qtx11extras
}:
mkDerivation {
name = "libkscreen";
nativeBuildInputs = [ extra-cmake-modules ];
2017-05-26 22:44:36 +02:00
buildInputs = [ kwayland libXrandr qtx11extras ];
outputs = [ "out" "dev" ];
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-05-26 23:22:27 +02:00
setupHook = propagate "out";
}