From 4985d670bb7bb686501351efed56f29181f2d1d6 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 4 Mar 2024 19:33:08 +0100 Subject: [PATCH] flake: avoid one evaluation of nixpkgs --- flake.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 281824b..4e0a282 100644 --- a/flake.nix +++ b/flake.nix @@ -180,13 +180,11 @@ }; } // inputs.flake-utils.lib.eachDefaultSystem (system: let - pkgs = import nixpkgs {inherit system;}; + pkgs = nixpkgs.legacyPackages.${system}; in { packages = inputs.flake-utils.lib.flattenTree - (import ./pkgs { - pkgs = import nixpkgs {inherit system;}; - }); + (import ./pkgs {inherit pkgs;}); devShells.default = pkgs.mkShellNoCC { buildInputs = [ pkgs.alejandra