b6d97fd731
GitOrigin-RevId: be0b453d7c7eee2090962c9a83749b024ff9acf5
22 lines
561 B
Nix
22 lines
561 B
Nix
{
|
|
mkDerivation, lib, propagate,
|
|
extra-cmake-modules,
|
|
kwayland, libXrandr, qtbase, qtx11extras
|
|
}:
|
|
|
|
mkDerivation {
|
|
name = "libkscreen";
|
|
meta = {
|
|
broken = lib.versionOlder qtbase.version "5.15.0";
|
|
};
|
|
nativeBuildInputs = [ extra-cmake-modules ];
|
|
buildInputs = [ kwayland libXrandr qtx11extras ];
|
|
outputs = [ "out" "dev" ];
|
|
patches = [
|
|
./libkscreen-backends-path.patch
|
|
];
|
|
preConfigure = ''
|
|
NIX_CFLAGS_COMPILE+=" -DNIXPKGS_LIBKSCREEN_BACKENDS=\"''${!outputBin}/$qtPluginPrefix/kf5/kscreen\""
|
|
'';
|
|
setupHook = propagate "out";
|
|
}
|