2021-02-12 08:09:02 +03:00
|
|
|
let
|
2021-03-14 10:12:02 +03:00
|
|
|
inherit (default.inputs.nixos) lib;
|
2021-02-12 08:09:02 +03:00
|
|
|
|
|
|
|
default = (import "${../.}/compat").defaultNix;
|
2021-02-15 21:34:25 +03:00
|
|
|
|
2021-03-14 10:12:02 +03:00
|
|
|
ciSystems = [
|
|
|
|
"aarch64-linux"
|
|
|
|
"i686-linux"
|
|
|
|
"x86_64-linux"
|
|
|
|
];
|
|
|
|
|
|
|
|
filterSystems = lib.filterAttrs
|
|
|
|
(system: _: lib.elem system ciSystems);
|
2021-02-15 08:22:02 +03:00
|
|
|
|
2021-03-14 10:12:02 +03:00
|
|
|
recurseIntoAttrsRecursive = lib.mapAttrs (_: v:
|
|
|
|
if lib.isAttrs v
|
|
|
|
then recurseIntoAttrsRecursive (lib.recurseIntoAttrs v)
|
|
|
|
else v
|
|
|
|
);
|
2021-02-15 08:22:02 +03:00
|
|
|
|
2021-03-14 10:12:02 +03:00
|
|
|
systemOutputs = lib.filterAttrs
|
|
|
|
(_: set: lib.isAttrs set
|
|
|
|
&& lib.any
|
|
|
|
(system: set ? ${system})
|
|
|
|
ciSystems
|
|
|
|
)
|
|
|
|
default.outputs;
|
|
|
|
|
|
|
|
ciDrvs = lib.mapAttrs (_: system: filterSystems system) systemOutputs;
|
|
|
|
in
|
|
|
|
recurseIntoAttrsRecursive ciDrvs
|