Commit 99c94f59 authored by OPNA2608's avatar OPNA2608
Browse files

{libsForQt5,qt6Packages}.pyotherside: Try to fix qtquicktests on Darwin

On Darwin, an Application Bundle is created for the qtquicktests binary. Patch the exec call to run the binary within the Bundle.
parent ddfce04d
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -27,6 +27,14 @@ stdenv.mkDerivation rec {

  postPatch = ''
    substituteInPlace qtquicktests/run \
      --replace-fail \
        'exec ./qtquicktests' \
        'exec ./${
          if stdenv.hostPlatform.isDarwin then
            "qtquicktests.app/Contents/MacOS/qtquicktests"
          else
            "qtquicktests"
        }' \
      --replace-fail \
        '-plugins ../src' \
        '-plugins ../src -import $out/${qtbase.qtQmlPrefix} -import ${lib.getBin qtdeclarative}/${qtbase.qtQmlPrefix}'