3f3d33a078
Using a distinct prefix for plugins and QML libraries allows multiple Qt 5 minor versions to coexist in the same environment.
20 lines
461 B
Nix
20 lines
461 B
Nix
{ plasmaPackage, lib, copyPathsToStore
|
|
, extra-cmake-modules
|
|
, kwayland, libXrandr
|
|
, qtx11extras
|
|
}:
|
|
|
|
plasmaPackage {
|
|
name = "libkscreen";
|
|
nativeBuildInputs = [
|
|
extra-cmake-modules
|
|
];
|
|
propagatedBuildInputs = [
|
|
kwayland libXrandr qtx11extras
|
|
];
|
|
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
|
preConfigure = ''
|
|
NIX_CFLAGS_COMPILE+=" -DNIXPKGS_LIBKSCREEN_BACKENDS=\"''${!outputLib}/$qtPluginPrefix/kf5/kscreen\""
|
|
'';
|
|
}
|