reorder pkgs.cross
definition for better readability
This commit is contained in:
@@ -72,12 +72,14 @@
|
|||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(import "${mobile-nixos}/overlay/overlay.nix")
|
(import "${mobile-nixos}/overlay/overlay.nix")
|
||||||
uninsane.overlay
|
uninsane.overlay
|
||||||
] ++ (builtins.attrValues self.overlays)
|
|
||||||
++ [
|
|
||||||
(next: prev: {
|
(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}";
|
cross = next.crossFrom."${local}";
|
||||||
})
|
})
|
||||||
];
|
] ++ (builtins.attrValues self.overlays);
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user