nixpkgs/pkgs/desktops/plasma-5/libkscreen/default.nix
Luna Nova 0354ac3bec
libkscreen: add qttools dependency
Required since 5.26.2 for Qt5LinguistTools
2022-10-26 22:49:30 -07:00

29 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";
}