qt5.qtModule: add explicit pkgsHostTarget.qt5.qtbase.dev to nativeBuildInputs if cross compiling

This commit is contained in:
Adam Joseph
2023-11-05 00:55:16 +00:00
committed by Adam Joseph
parent 7fea375c9b
commit 94451ae7cf
+7 -1
View File
@@ -6,6 +6,7 @@
, qmake
, patches
, srcs
, pkgsHostTarget
}:
let inherit (lib) licenses maintainers platforms; in
@@ -22,7 +23,12 @@ mkDerivation (args // {
inherit pname version src;
patches = (args.patches or []) ++ (patches.${pname} or []);
nativeBuildInputs = (args.nativeBuildInputs or []) ++ [ perl qmake ];
nativeBuildInputs =
(args.nativeBuildInputs or []) ++ [
perl qmake
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
pkgsHostTarget.qt5.qtbase.dev
];
propagatedBuildInputs =
(lib.warnIf (args ? qtInputs) "qt5.qtModule's qtInputs argument is deprecated" args.qtInputs or []) ++
(args.propagatedBuildInputs or []);