From f09e0ac49786eef122aea78fa72b974a7234db73 Mon Sep 17 00:00:00 2001 From: diniamo <55629891+diniamo@users.noreply.github.com> Date: Sun, 7 Jul 2024 19:39:00 +0200 Subject: [PATCH] nix(flake): avoid importing nixpkgs (#25) --- 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: {