2021-01-18 18:34:53 +01:00
|
|
|
let
|
2021-03-14 08:10:51 +01:00
|
|
|
inherit (default.inputs.nixos) lib;
|
2021-01-19 08:51:23 +01:00
|
|
|
|
2021-05-16 19:22:40 +02:00
|
|
|
default = (import ./lib/compat).defaultNix;
|
2021-04-19 05:00:45 +02:00
|
|
|
|
|
|
|
ciSystems = [
|
|
|
|
"aarch64-linux"
|
|
|
|
"i686-linux"
|
|
|
|
"x86_64-linux"
|
|
|
|
];
|
|
|
|
|
|
|
|
filterSystems = lib.filterAttrs
|
|
|
|
(system: _: lib.elem system ciSystems);
|
|
|
|
|
|
|
|
recurseIntoAttrsRecursive = lib.mapAttrs (_: v:
|
|
|
|
if lib.isAttrs v
|
|
|
|
then recurseIntoAttrsRecursive (lib.recurseIntoAttrs v)
|
|
|
|
else v
|
|
|
|
);
|
|
|
|
|
|
|
|
systemOutputs = lib.filterAttrs
|
|
|
|
(name: set: lib.isAttrs set
|
|
|
|
&& lib.any
|
|
|
|
(system: set ? ${system} && name != "legacyPackages")
|
|
|
|
ciSystems
|
|
|
|
)
|
|
|
|
default.outputs;
|
|
|
|
|
|
|
|
ciDrvs = lib.mapAttrs (_: system: filterSystems system) systemOutputs;
|
2021-01-18 18:34:53 +01:00
|
|
|
in
|
2021-04-19 05:00:45 +02:00
|
|
|
(recurseIntoAttrsRecursive ciDrvs) // { shell = import ./shell.nix; }
|