18 lines
785 B
Nix
18 lines
785 B
Nix
let
|
|
depot = (import ./default.nix { });
|
|
pkgs = depot.third_party.nixpkgs;
|
|
inherit (pkgs) lib;
|
|
|
|
arches = [ "x86_64-linux" "aarch64-linux" ];
|
|
archRoots = builtins.listToAttrs (map (name: { inherit name; value = (import ./ci-root.nix { system = name; }); }) arches);
|
|
combined = pkgs.runCommand "systems.json" {
|
|
nativeBuildInputs = [ pkgs.jq ];
|
|
} ''
|
|
jq -s add ${builtins.concatStringsSep " " (lib.mapAttrsToList (name: value: "'${value}/other-systemPathJSON'") archRoots)} > $out
|
|
'';
|
|
in
|
|
pkgs.linkFarm "ci-linux-combined" [
|
|
{ name = "x86_64-linux"; path = (import ./ci-root.nix { system = "x86_64-linux"; }); }
|
|
{ name = "aarch64-linux"; path = (import ./ci-root.nix { system = "aarch64-linux"; }); }
|
|
{ name = "combined-systems"; path = combined; }
|
|
]
|