c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
27 lines
614 B
Nix
27 lines
614 B
Nix
{ mkDerivation
|
|
, lib
|
|
, propagate
|
|
, extra-cmake-modules
|
|
, qtbase
|
|
, wayland-scanner
|
|
, kconfig
|
|
, kwayland
|
|
, plasma-wayland-protocols
|
|
, wayland
|
|
, libXrandr
|
|
, qtx11extras
|
|
}:
|
|
|
|
mkDerivation {
|
|
pname = "libkscreen";
|
|
nativeBuildInputs = [ extra-cmake-modules wayland-scanner ];
|
|
buildInputs = [ kconfig 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";
|
|
}
|