about summary refs log tree commit diff
path: root/nixpkgs/pkgs/desktops/plasma-5/libkscreen/default.nix
blob: ae623a80d7d9034f9dc0cd243a772afd5e17a8f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
  mkDerivation, lib, propagate,
  extra-cmake-modules,
  qtbase,
  wayland-scanner, kwayland,
  plasma-wayland-protocols, wayland,
  libXrandr, qtx11extras
}:

mkDerivation {
  name = "libkscreen";
  nativeBuildInputs = [ extra-cmake-modules wayland-scanner ];
  buildInputs = [ kwayland plasma-wayland-protocols wayland libXrandr qtx11extras ];
  outputs = [ "out" "dev" ];
  patches = [
    ./libkscreen-backends-path.patch
  ];
  preConfigure = ''
    NIX_CFLAGS_COMPILE+=" -DNIXPKGS_LIBKSCREEN_BACKENDS=\"''${!outputBin}/$qtPluginPrefix/kf5/kscreen\""
  '';
  setupHook = propagate "out";
}