reorder pkgs.cross definition for better readability

This commit is contained in:
2023-01-11 07:37:01 +00:00
parent 917afe209e
commit 7b9910f287

View File

@@ -72,12 +72,14 @@
nixpkgs.overlays = [
(import "${mobile-nixos}/overlay/overlay.nix")
uninsane.overlay
] ++ (builtins.attrValues self.overlays)
++ [
(next: prev: {
# for local != target we by default just emulate the target while building.
# provide a `pkgs.cross.<pkg>` alias that consumers can use instead of `pkgs.<foo>`
# to explicitly opt into non-emulated cross compilation for any specific package.
# this is most beneficial for large packages with few pre-requisites -- like Linux.
cross = next.crossFrom."${local}";
})
];
] ++ (builtins.attrValues self.overlays);
}
];
});