mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
26 lines
617 B
Nix
26 lines
617 B
Nix
{ mkDerivation
|
|
, propagate
|
|
, extra-cmake-modules
|
|
, 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";
|
|
}
|