From ea5a24596ef68fce3d74c51fdaf7e9e82639013d Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Fri, 26 Mar 2021 10:19:54 +0100 Subject: [PATCH] Avoid evaulating nixpkgs again for localSystem == crossSystem --- flake.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index b057aed..bcabb2b 100644 --- a/flake.nix +++ b/flake.nix @@ -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;