mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
18 lines
511 B
Nix
18 lines
511 B
Nix
{
|
|
mkDerivation, lib, copyPathsToStore, propagate,
|
|
extra-cmake-modules,
|
|
kwayland, libXrandr, qtx11extras
|
|
}:
|
|
|
|
mkDerivation {
|
|
name = "libkscreen";
|
|
nativeBuildInputs = [ extra-cmake-modules ];
|
|
buildInputs = [ kwayland libXrandr qtx11extras ];
|
|
outputs = [ "out" "dev" ];
|
|
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
|
preConfigure = ''
|
|
NIX_CFLAGS_COMPILE+=" -DNIXPKGS_LIBKSCREEN_BACKENDS=\"''${!outputBin}/$qtPluginPrefix/kf5/kscreen\""
|
|
'';
|
|
setupHook = propagate "out";
|
|
}
|