From faa804c4e8560b8d17fb99865bf311f50e7224d2 Mon Sep 17 00:00:00 2001 From: diniamo Date: Sun, 7 Jul 2024 12:30:35 +0200 Subject: [PATCH] nix(flake): avoid importing nixpkgs https://zimbatm.com/notes/1000-instances-of-nixpkgs --- flake.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 38174bb..5cf6a5c 100644 --- a/flake.nix +++ b/flake.nix @@ -12,9 +12,7 @@ supportedSystems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"]; forAllSystems = nixpkgs.lib.genAttrs supportedSystems; system = "x86_64-linux"; - pkgs = import nixpkgs { - inherit system; - }; + pkgs = nixpkgs.legacyPackages.${system}; naersk' = pkgs.callPackage naersk {}; in { packages = forAllSystems (system: {