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; let f = import nixpkgs;
in forAllSystems ({ system, localSystem, crossSystem }: in forAllSystems ({ system, localSystem, crossSystem }:
if localSystem == crossSystem then if localSystem == crossSystem then
f { nixpkgs.legacyPackages.${system}.extend self.overlay
inherit system;
overlays = [ self.overlay ];
}
else else
f { f {
inherit localSystem; inherit localSystem;