tests: move mkIfTest to nix-bitcoin.lib

This commit is contained in:
Erik Arvstedt 2022-10-22 19:37:56 +02:00
parent 47a09ec214
commit 8eaa4cce30
No known key found for this signature in database
GPG key ID: 33312B944DD97846
3 changed files with 7 additions and 3 deletions

View file

@ -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