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