summaryrefslogtreecommitdiff
path: root/dev/hydraJobs.nix
blob: 9cc4617b30929e01cfc1dbacf0afb7b85e95f7e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
  lib,
  self,
  withSystem,
  ...
}:
let
  ciSystem = "x86_64-linux";
  derivFromCfg = deriv: deriv.config.system.build.toplevel or deriv.activationPackage;
  mapCfgsToDerivs = lib.mapAttrs (lib.const derivFromCfg);
in
{
  flake.hydraJobs = withSystem ciSystem (
    { pkgs, self', ... }:
    {
      inherit (self') checks;
      inherit (self') devShells;
      darwinConfigurations = mapCfgsToDerivs self.darwinConfigurations;
      homeConfigurations = mapCfgsToDerivs self.homeConfigurations;
      nixosConfigurations = mapCfgsToDerivs self.nixosConfigurations // {
        # please add aarch64 runners github...please...
        atlas = lib.deepSeq (derivFromCfg self.nixosConfigurations.atlas).drvPath pkgs.emptyFile;
      };
    }
  );
}