Commit 664d9fd9 authored by OPNA2608's avatar OPNA2608
Browse files

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
parent 82c8852b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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") [