16 lines
671 B
Nix
16 lines
671 B
Nix
{ ... }:
|
|
|
|
{
|
|
# the configuration of which specific package set `pkgs.cross` refers to happens elsewhere;
|
|
# here we just define them all.
|
|
nixpkgs.overlays = [
|
|
(next: prev: {
|
|
# non-emulated packages build *from* local *for* target.
|
|
# for large packages like the linux kernel which are expensive to build under emulation,
|
|
# the config can explicitly pull such packages from `pkgs.cross` to do more efficient cross-compilation.
|
|
crossFrom."x86_64-linux" = (prev.forceSystem "x86_64-linux" null).appendOverlays next.overlays;
|
|
crossFrom."aarch64-linux" = (prev.forceSystem "aarch64-linux" null).appendOverlays next.overlays;
|
|
})
|
|
];
|
|
}
|