summaryrefslogtreecommitdiff
path: root/hydraJobs.nix
blob: ba26af5d36c36227d5778da10527a6152202012d (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
27
{
  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;
      };
  });
}