2017-02-28 14:49:25 +01:00
|
|
|
{
|
2017-05-15 19:05:35 +02:00
|
|
|
mkDerivation, lib, copyPathsToStore,
|
2017-02-28 14:49:25 +01:00
|
|
|
extra-cmake-modules,
|
2017-10-19 10:20:40 +02:00
|
|
|
libpthreadstubs, libXdmcp,
|
2017-02-28 14:49:25 +01:00
|
|
|
qtbase, qttools, qtx11extras
|
2016-04-21 17:32:21 +02:00
|
|
|
}:
|
|
|
|
|
2017-05-15 19:05:35 +02:00
|
|
|
mkDerivation {
|
2016-04-21 17:32:21 +02:00
|
|
|
name = "kwindowsystem";
|
2017-02-28 14:49:25 +01:00
|
|
|
meta = {
|
|
|
|
maintainers = [ lib.maintainers.ttuegel ];
|
2017-08-23 12:13:43 +02:00
|
|
|
broken = builtins.compareVersions qtbase.version "5.7.0" < 0;
|
2017-02-28 14:49:25 +01:00
|
|
|
};
|
2017-05-22 20:49:07 +02:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules ];
|
2017-10-19 10:20:40 +02:00
|
|
|
buildInputs = [ libpthreadstubs libXdmcp qttools qtx11extras ];
|
2017-05-22 20:49:07 +02:00
|
|
|
propagatedBuildInputs = [ qtbase ];
|
2017-04-18 15:11:17 +02:00
|
|
|
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
|
|
|
preConfigure = ''
|
2017-05-22 20:49:07 +02:00
|
|
|
NIX_CFLAGS_COMPILE+=" -DNIXPKGS_QT_PLUGIN_PATH=\"''${!outputBin}/$qtPluginPrefix\""
|
2017-04-18 15:11:17 +02:00
|
|
|
'';
|
2017-05-23 18:02:49 +02:00
|
|
|
outputs = [ "out" "dev" ];
|
2016-04-21 17:32:21 +02:00
|
|
|
}
|