diff --git a/flake.nix b/flake.nix index a196eb7..921d0e1 100644 --- a/flake.nix +++ b/flake.nix @@ -43,9 +43,11 @@ nixConfig = { extra-substituters = [ "https://cache.iog.io" + "https://cache.garnix.io" ]; extra-trusted-public-keys = [ "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=" + "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" ]; allow-import-from-derivation = true; }; diff --git a/garnix.yaml b/garnix.yaml new file mode 100644 index 0000000..da969a1 --- /dev/null +++ b/garnix.yaml @@ -0,0 +1,3 @@ +builds: + include: + - 'checks.*.*' diff --git a/nix/outputs.nix b/nix/outputs.nix index 48c87c8..7135e5e 100644 --- a/nix/outputs.nix +++ b/nix/outputs.nix @@ -9,6 +9,17 @@ in [ ( # Docs for project.flake: https://github.com/input-output-hk/iogx/blob/main/doc/api.md#mkhaskellprojectoutflake - project.flake + project.flake // { + checks = let + # https://github.com/numtide/flake-utils/issues/121#issuecomment-2589899217 + recurseIntoDeepAttrs = attrs: + lib.recurseIntoAttrs (lib.mapAttrs (_: v: + if builtins.typeOf v == "set" && !lib.isDerivation v + then recurseIntoDeepAttrs v + else v + ) attrs); + in + inputs.iogx.inputs.flake-utils.lib.flattenTree (recurseIntoDeepAttrs project.flake.hydraJobs); + } ) ]