tests: refactor to carry the package set as an argument

This way, the package set will be possible to pass without re-importing
all the time
This commit is contained in:
Léo Gaspard
2018-11-11 23:11:45 +09:00
parent 921b63134a
commit 6c68fbd4e1
26 changed files with 133 additions and 53 deletions
+7 -2
View File
@@ -1,6 +1,11 @@
{ system ? builtins.currentSystem, debug ? false, enableUnfree ? false }:
{ system ? builtins.currentSystem,
config ? {},
pkgs ? import ../.. { inherit system config; },
debug ? false,
enableUnfree ? false
}:
with import ../lib/testing.nix { inherit system; };
with import ../lib/testing.nix { inherit system pkgs; };
with pkgs.lib;
let