Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prepare for garnix #205

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,23 @@
# This is not ideal, it means this flake will not evaluate properly on
# anything but linux :-/ However, CI requires a top-level required job,
# for now. And not one per system.
in pkgs.lib.recursiveUpdate flake {
in pkgs.lib.recursiveUpdate (removeAttrs flake ["checks"]) {
# add a required job, that's basically all hydraJobs.
hydraJobs = pkgs.callPackages inputs.iohkNix.utils.ciJobsAggregates
{ ciJobs = flake.hydraJobs; };

checks = let
# https://github.com/numtide/flake-utils/issues/121#issuecomment-2589899217
recurseIntoDeepAttrs = attrs:
pkgs.lib.recurseIntoAttrs (pkgs.lib.mapAttrs (_: v:
if builtins.typeOf v == "set" && !pkgs.lib.isDerivation v
then recurseIntoDeepAttrs v
else v
) attrs);
in pkgs.lib.genAttrs supportedSystems (system:
inputs.flake-utils.lib.flattenTree (recurseIntoDeepAttrs flake.hydraJobs.${system})
// pkgs.callPackages inputs.iohkNix.utils.ciJobsAggregates { ciJobs = flake.hydraJobs.${system}; }
);
};

nixConfig = {
Expand All @@ -78,11 +91,13 @@
# drop this, once we stop needing it; when we have stable aarch64-darwin
# builds
"https://cache.zw3rk.com"
"https://cache.garnix.io"
];
extra-trusted-public-keys = [
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
"loony-tools:pr9m4BkM/5/eSTZlkQyRt57Jz7OMBxNSUiMC4FkcNfk="
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
];
allow-import-from-derivation = true;
};
}
}
3 changes: 3 additions & 0 deletions garnix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
builds:
include:
- 'checks.*.*'
Loading