1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/pkgs/desktops/plasma-5/libkscreen/default.nix

21 lines
602 B
Nix
Raw Normal View History

2017-05-26 21:44:36 +01:00
{
2017-05-26 22:22:27 +01:00
mkDerivation, lib, copyPathsToStore, propagate,
2017-05-26 21:44:36 +01:00
extra-cmake-modules,
2019-09-29 18:27:36 +01:00
kwayland, libXrandr, qtbase, qtx11extras
}:
mkDerivation {
name = "libkscreen";
2019-09-29 18:27:36 +01:00
meta = {
broken = builtins.compareVersions qtbase.version "5.12.0" < 0;
};
nativeBuildInputs = [ extra-cmake-modules ];
2017-05-26 21:44:36 +01:00
buildInputs = [ kwayland libXrandr qtx11extras ];
outputs = [ "out" "dev" ];
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
preConfigure = ''
2017-05-26 21:44:36 +01:00
NIX_CFLAGS_COMPILE+=" -DNIXPKGS_LIBKSCREEN_BACKENDS=\"''${!outputBin}/$qtPluginPrefix/kf5/kscreen\""
'';
2017-05-26 22:22:27 +01:00
setupHook = propagate "out";
}