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.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/make-test.nix b/tests/make-test.nix
index 9276dae3..d98ff87f 100644
--- a/tests/make-test.nix
+++ b/tests/make-test.nix
@@ -1,11 +1,13 @@
 f: { system ? builtins.currentSystem, ... } @ args: let
-  lib = import <nixpkgs/lib>;
+  nixpkgsPath = import ../nixpkgs-path.nix;
 
-  testLib = import <nixpkgs/nixos/lib/testing.nix> {
+  lib = import "${nixpkgsPath}/lib";
+
+  testLib = import "${nixpkgsPath}/nixos/lib/testing.nix" {
     inherit system;
   };
 
-  pkgs = import <nixpkgs> { inherit system; };
+  pkgs = import nixpkgsPath { inherit system; };
 
   testArgs = if builtins.isFunction f then f (args // {
     pkgs = pkgs // {