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