1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-14 09:16:39 +03:00

cross-workarounds: Don't apply overlay on pkgsBuildBuild

As described near the change, this would cause qemu to become an overly
costly build.
This commit is contained in:
Samuel Dionne-Riel 2021-02-24 21:24:01 -05:00
parent a9d3769cc3
commit b07dc19062

View File

@ -9,7 +9,10 @@ let
config.nixpkgs.localSystem.system != null &&
config.nixpkgs.crossSystem.system != config.nixpkgs.localSystem.system;
AArch32Overlay = final: super: {
AArch32Overlay = final: super:
# Ensure pkgsBuildBuild ends up unmodified, otherwise the canary test will
# get super expensive to build.
if super.stdenv.buildPlatform == super.stdenv.hostPlatform then {} else {
# Works around libselinux failure with python on armv7l.
# LONG_BIT definition appears wrong for platform
libselinux = (super.libselinux