qttools: patch qmlimportscanner for darwin builds

This needs to be the full path for qtmacdeploy to work. We add
${qt5.qttools.dev}/bin/qmlimportscanner as the default.

Fixes #63093
This commit is contained in:
Matthew Bauer
2019-06-22 22:21:38 -04:00
parent 6f40e5d9a2
commit 79c0e740a7
4 changed files with 35 additions and 1 deletions
@@ -1,4 +1,4 @@
{ qtModule, stdenv, lib, qtbase }:
{ qtModule, stdenv, lib, qtbase, qtdeclarative }:
with lib;
@@ -32,5 +32,8 @@ qtModule {
"bin/macdeployqt"
];
NIX_CFLAGS_COMPILE =
lib.optional stdenv.isDarwin ''-DNIXPKGS_QMLIMPORTSCANNER="${qtdeclarative.dev}/bin/qmlimportscanner"'';
setupHook = ../hooks/qttools-setup-hook.sh;
}