From b230995fcc1cafaf4c84bc09514105c57eef4a03 Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 1 May 2024 17:38:50 -0400 Subject: [PATCH] pass nixpkgs directly in forAllSystems --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 7ad2a5c..574347b 100644 --- a/flake.nix +++ b/flake.nix @@ -13,7 +13,7 @@ "aarch64-linux" "x86_64-darwin" "aarch64-darwin" - ] (system: function system); + ] (system: function nixpkgs.legacyPackages.${system}); in { templates = { @@ -31,6 +31,6 @@ description = ""; }; }; - formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.nixfmt-rfc-style); + formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style); }; }