diff options
author | Adam Joseph <adam@westernsemico.com> | 2023-11-03 21:58:12 -0700 |
---|---|---|
committer | Adam Joseph <54836058+amjoseph-nixpkgs@users.noreply.github.com> | 2023-11-05 00:55:16 +0000 |
commit | 7fea375c9b1baea62f298f0cacddc41727816077 (patch) | |
tree | 23f12b738b82f630fb8a7ffba1167f908d5e6649 /pkgs/development/libraries/qt-5 | |
parent | b33f3703fc8a51d2b737f33fb0117ff5f5198b77 (diff) |
qt5.qtModule: add buildPackages.stdenv.cc to depsBuildBuild if cross compiling
Diffstat (limited to 'pkgs/development/libraries/qt-5')
-rw-r--r-- | pkgs/development/libraries/qt-5/qtModule.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/libraries/qt-5/qtModule.nix b/pkgs/development/libraries/qt-5/qtModule.nix index 9e943a5f3aa0e..e5d1e1f5422e9 100644 --- a/pkgs/development/libraries/qt-5/qtModule.nix +++ b/pkgs/development/libraries/qt-5/qtModule.nix @@ -1,5 +1,6 @@ { lib , stdenv +, buildPackages , mkDerivation , perl , qmake @@ -25,6 +26,9 @@ mkDerivation (args // { propagatedBuildInputs = (lib.warnIf (args ? qtInputs) "qt5.qtModule's qtInputs argument is deprecated" args.qtInputs or []) ++ (args.propagatedBuildInputs or []); +} // lib.optionalAttrs (stdenv.buildPlatform != stdenv.hostPlatform) { + depsBuildBuild = [ buildPackages.stdenv.cc ] ++ (args.depsBuildBuild or []); +} // { outputs = args.outputs or [ "out" "dev" ]; setOutputFlags = args.setOutputFlags or false; |