mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 13:13:33 +00:00
23 lines
598 B
Nix
23 lines
598 B
Nix
{
|
|
mkDerivation, lib, propagate,
|
|
extra-cmake-modules,
|
|
qtbase,
|
|
wayland-scanner, kwayland,
|
|
plasma-wayland-protocols, wayland,
|
|
libXrandr, qtx11extras
|
|
}:
|
|
|
|
mkDerivation {
|
|
pname = "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";
|
|
}
|