Skip to content

Commit

Permalink
flake: avoid one evaluation of nixpkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
alarsyo committed Mar 4, 2024
1 parent 226e726 commit 4985d67
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4985d67

Please sign in to comment.