From 750621e1eff3e53e7c5d745c987a2aaa486d8281 Mon Sep 17 00:00:00 2001 From: ibizaman Date: Fri, 8 Dec 2023 10:37:57 -0800 Subject: [PATCH] use callpackage to simplify imports --- flake.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 0e508c8..3c2afda 100644 --- a/flake.nix +++ b/flake.nix @@ -61,10 +61,7 @@ checks = let importFiles = files: - map (m: import m { - inherit pkgs; - inherit (pkgs) lib; - }) files; + map (m: pkgs.callPackage m {}) files; mergeTests = pkgs.lib.lists.foldl pkgs.lib.trivial.mergeAttrs {};