flake: avoid one evaluation of nixpkgs

This commit is contained in:
Antoine Martin 2024-03-04 19:33:08 +01:00
parent 226e726551
commit 4985d670bb

View file

@ -180,13 +180,11 @@
}; };
} }
// inputs.flake-utils.lib.eachDefaultSystem (system: let // inputs.flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {inherit system;}; pkgs = nixpkgs.legacyPackages.${system};
in { in {
packages = packages =
inputs.flake-utils.lib.flattenTree inputs.flake-utils.lib.flattenTree
(import ./pkgs { (import ./pkgs {inherit pkgs;});
pkgs = import nixpkgs {inherit system;};
});
devShells.default = pkgs.mkShellNoCC { devShells.default = pkgs.mkShellNoCC {
buildInputs = [ buildInputs = [
pkgs.alejandra pkgs.alejandra