depot/third_party/nixpkgs/pkgs/desktops/plasma-5/libkscreen/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

28 lines
632 B
Nix

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