Avoid evaulating nixpkgs again for localSystem == crossSystem

This commit is contained in:
Ehmry - 2021-03-26 10:19:54 +01:00
parent 307a261dfa
commit ea5a24596e
1 changed files with 1 additions and 4 deletions

View File

@ -207,10 +207,7 @@
let f = import nixpkgs;
in forAllSystems ({ system, localSystem, crossSystem }:
if localSystem == crossSystem then
f {
inherit system;
overlays = [ self.overlay ];
}
nixpkgs.legacyPackages.${system}.extend self.overlay
else
f {
inherit localSystem;