1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-21 13:44:50 +00:00
nixpkgs/pkgs/desktops/plasma-5/libkscreen/default.nix
2019-09-29 12:56:29 -05:00

21 lines
602 B
Nix

{
mkDerivation, lib, copyPathsToStore, propagate,
extra-cmake-modules,
kwayland, libXrandr, qtbase, qtx11extras
}:
mkDerivation {
name = "libkscreen";
meta = {
broken = builtins.compareVersions qtbase.version "5.12.0" < 0;
};
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";
}