about summary refs log tree commit diff
path: root/tests/make-test.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tests/make-test.nix')
-rw-r--r--tests/make-test.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/make-test.nix b/tests/make-test.nix
index 4534b991..cdc763c7 100644
--- a/tests/make-test.nix
+++ b/tests/make-test.nix
@@ -7,12 +7,12 @@ testFun:
 
   lib = import "${nixpkgsPath}/lib";
 
+  pkgs = import nixpkgsPath { inherit system; };
+
   testLib = import "${nixpkgsPath}/nixos/lib/testing.nix" {
-    inherit system;
+    inherit pkgs system;
   };
 
-  pkgs = import nixpkgsPath { inherit system; };
-
   testArgs = if builtins.isFunction testFun then testFun (args // {
     pkgs = pkgs // {
       vuizvui = import ../pkgs { inherit pkgs; };