qt5.qttranslations: disable if cross to prevent infinite recursion

This commit is contained in:
Adam Joseph 2023-11-03 22:14:31 -07:00 committed by Adam Joseph
parent d1df34dc10
commit c591f4d635

View file

@ -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