From a392056e863c1db6a27ce121cc0e5da4394072ea Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Tue, 19 May 2026 09:33:12 +0200 Subject: [PATCH] lomiri.qtmir: Fix typo in comment, pull comments out of shell code Typo fix causes rebuild, which is silly. Pull comments out of executed shell code to avoid that in the future. --- .../lomiri/development/qtmir/default.nix | 31 +++++++++++-------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/pkgs/desktops/lomiri/development/qtmir/default.nix b/pkgs/desktops/lomiri/development/qtmir/default.nix index 4378dec63fef..6760cbbd9555 100644 --- a/pkgs/desktops/lomiri/development/qtmir/default.nix +++ b/pkgs/desktops/lomiri/development/qtmir/default.nix @@ -50,19 +50,24 @@ stdenv.mkDerivation (finalAttrs: { "dev" ]; - postPatch = '' - # 10s timeout for Mir startup is too tight for VM tests on weaker hardwre (aarch64) - substituteInPlace src/platforms/mirserver/qmirserver_p.cpp \ - --replace-fail 'const int timeout = RUNNING_ON_VALGRIND ? 100 : 10' 'const int timeout = RUNNING_ON_VALGRIND ? 900 : 90' \ - --replace-fail 'const int timeout = 10' 'const int timeout = 90' - - substituteInPlace CMakeLists.txt \ - --replace-fail "\''${CMAKE_INSTALL_FULL_LIBDIR}/qt5/qml" "\''${CMAKE_INSTALL_PREFIX}/${qtbase.qtQmlPrefix}" \ - --replace-fail "\''${CMAKE_INSTALL_FULL_LIBDIR}/qt5/plugins/platforms" "\''${CMAKE_INSTALL_PREFIX}/${qtbase.qtPluginPrefix}/platforms" \ - - substituteInPlace data/xwayland.qtmir.desktop \ - --replace-fail '/usr/bin/Xwayland' 'Xwayland' - ''; + postPatch = + # 10s timeout for Mir startup is too tight for VM tests on weaker hardware (aarch64) + '' + substituteInPlace src/platforms/mirserver/qmirserver_p.cpp \ + --replace-fail 'const int timeout = RUNNING_ON_VALGRIND ? 100 : 10' 'const int timeout = RUNNING_ON_VALGRIND ? 900 : 90' \ + --replace-fail 'const int timeout = 10' 'const int timeout = 90' + '' + # Fix where Qt plugins & QML modules should be installed to. We don't use "qt5" for Qt5. + + '' + substituteInPlace CMakeLists.txt \ + --replace-fail "\''${CMAKE_INSTALL_FULL_LIBDIR}/qt5/qml" "\''${CMAKE_INSTALL_PREFIX}/${qtbase.qtQmlPrefix}" \ + --replace-fail "\''${CMAKE_INSTALL_FULL_LIBDIR}/qt5/plugins/platforms" "\''${CMAKE_INSTALL_PREFIX}/${qtbase.qtPluginPrefix}/platforms" + '' + # Look up Xwayland in environment + + '' + substituteInPlace data/xwayland.qtmir.desktop \ + --replace-fail '/usr/bin/Xwayland' 'Xwayland' + ''; strictDeps = true;