diff --git a/ioc/modules/checks.nix b/ioc/modules/checks.nix index 427935eb..a9f7ccbb 100644 --- a/ioc/modules/checks.nix +++ b/ioc/modules/checks.nix @@ -1,5 +1,7 @@ { config, + epnix, + epnixConfig, lib, pkgs, ... @@ -41,8 +43,17 @@ in { importCheck = path: import path { - inherit pkgs; - inherit (config.epnix.outputs) build; + inherit pkgs epnix epnixConfig; + + build = + lib.warn + '' + using 'build' in a check is deprecated. + Please see the current EPNix IOC template for the new way of implementing checks: + + - ${epnix}/templates/top/checks/simple.nix + '' + config.epnix.outputs.build; }; in listToAttrs diff --git a/lib/default.nix b/lib/default.nix index 93c8bb30..0e237001 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -34,6 +34,9 @@ with lib; let in { # See: https://github.com/NixOS/nixpkgs/pull/190358 pkgs = finalPkgs.__splicedPackages; + + # Used when we want to apply the same config in checks + inherit epnixConfig; }; })