From c591f4d63596a0e4ca226ace2182f6a531768c5d Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Fri, 3 Nov 2023 22:14:31 -0700 Subject: [PATCH] qt5.qttranslations: disable if cross to prevent infinite recursion --- pkgs/development/libraries/qt-5/5.15/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/qt-5/5.15/default.nix b/pkgs/development/libraries/qt-5/5.15/default.nix index b8ad76854728..56b7f86ba6c4 100644 --- a/pkgs/development/libraries/qt-5/5.15/default.nix +++ b/pkgs/development/libraries/qt-5/5.15/default.nix @@ -338,7 +338,12 @@ let }); finalScope = baseScope.overrideScope(final: prev: { - qttranslations = bootstrapScope.qttranslations; + # qttranslations causes eval-time infinite recursion when + # cross-compiling; disabled for now. + qttranslations = + if stdenv.buildPlatform == stdenv.hostPlatform + then bootstrapScope.qttranslations + else null; qutebrowser = final.callPackage ../../../../applications/networking/browsers/qutebrowser { }; }); in finalScope