3
0
Fork 0
forked from mirrors/nixpkgs

alice-tools-qt6: Fix Qt tool detection on Darwin

Meson seems to default to QMake there, which gives search paths into qtbase.out instead of qtbase.dev
This commit is contained in:
OPNA2608 2023-04-12 12:29:07 +02:00
parent 82c8852b6f
commit 664d9fd9a2

View file

@ -33,8 +33,12 @@ stdenv.mkDerivation (finalAttrs: {
};
postPatch = lib.optionalString (withGUI && lib.versionAtLeast qtbase.version "6.0") ''
# Use Meson's Qt6 module
substituteInPlace src/meson.build \
--replace qt5 qt6
# For some reason Meson uses QMake instead of pkg-config detection method for Qt6 on Darwin, which gives wrong search paths for tools
export PATH=${qtbase.dev}/libexec:$PATH
'';
mesonFlags = lib.optionals (withGUI && lib.versionAtLeast qtbase.version "6.0") [