|
|
|
@ -45,9 +45,18 @@ rec { |
|
|
|
|
default = { |
|
|
|
|
buildSystem, |
|
|
|
|
hostSystem ? buildSystem, |
|
|
|
|
}: import src { |
|
|
|
|
}: import src ({ |
|
|
|
|
|
|
|
|
|
inherit overlays; |
|
|
|
|
system = buildSystem; |
|
|
|
|
|
|
|
|
|
} // (if buildSystem == hostSystem then {} else { |
|
|
|
|
|
|
|
|
|
# The nixpkgs cache doesn't have any packages where cross-compiling has been |
|
|
|
|
# enabled, even if the target platform is actually the same as the build |
|
|
|
|
# platform (and therefore it's not really cross-compiling). So we only set |
|
|
|
|
# up the cross-compiling config if the target platform is different. |
|
|
|
|
crossSystem.config = hostSystem; |
|
|
|
|
inherit overlays; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
})); |
|
|
|
|
} |
|
|
|
|