about summary refs log tree commit diff
path: root/nixpkgs/pkgs/desktops/plasma-5/libkscreen/default.nix
blob: 5625aa656ceb4e831e0746e66ab9496a12b3a823 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  mkDerivation, lib, copyPathsToStore, propagate,
  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\""
  '';
  setupHook = propagate "out";
}