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
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