tests: move mkIfTest to nix-bitcoin.lib
This commit is contained in:
+5
-1
@@ -1,4 +1,4 @@
|
||||
lib: pkgs:
|
||||
lib: pkgs: config:
|
||||
|
||||
with lib;
|
||||
|
||||
@@ -115,4 +115,8 @@ let self = {
|
||||
(map (ip: "IP:${ip}") cert.extraIPs)
|
||||
);
|
||||
|
||||
test = {
|
||||
mkIfTest = test: mkIf (config.tests.${test} or false);
|
||||
};
|
||||
|
||||
}; in self
|
||||
|
||||
Reference in New Issue
Block a user