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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
617 B
Nix
Raw Normal View History

{ mkDerivation
, propagate
, extra-cmake-modules
, wayland-scanner
, kconfig
, kwayland
, plasma-wayland-protocols
, wayland
, libXrandr
, qtx11extras
, qttools
}:
mkDerivation {
2022-03-06 22:28:56 +01:00
pname = "libkscreen";
nativeBuildInputs = [ extra-cmake-modules wayland-scanner ];
buildInputs = [ kconfig kwayland plasma-wayland-protocols wayland libXrandr qtx11extras qttools ];
2017-05-26 22:44:36 +02:00
outputs = [ "out" "dev" ];
patches = [
./libkscreen-backends-path.patch
];
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";
}