2022-05-23 11:58:42 +03:00
|
|
|
{ pkgs, inputs, system }@args:
|
2021-06-05 23:59:06 +03:00
|
|
|
let
|
2021-08-23 21:49:13 +03:00
|
|
|
patched-derivations = import ./patched-derivations.nix (pkgs // { flakePackages = all; });
|
2021-06-05 23:59:06 +03:00
|
|
|
patched-inputs = import ./patched-inputs.nix args;
|
2022-03-14 00:13:53 +02:00
|
|
|
projects = import ./projects.nix args;
|
2021-08-23 21:49:13 +03:00
|
|
|
all = patched-derivations
|
|
|
|
// patched-inputs
|
2022-03-14 00:13:53 +02:00
|
|
|
// projects.packages;
|
2022-05-23 11:58:42 +03:00
|
|
|
filters = import ./system-filter.nix;
|
2022-05-31 21:58:23 +03:00
|
|
|
doFilter = filterSet: pkgSet: pkgs.lib.filterAttrs (name: _:
|
|
|
|
filterSet ? "${name}" -> builtins.elem system filterSet."${name}"
|
|
|
|
) pkgSet;
|
2022-03-14 00:13:53 +02:00
|
|
|
in {
|
2022-05-31 21:58:23 +03:00
|
|
|
packages = doFilter filters.packages all;
|
2022-03-14 00:13:53 +02:00
|
|
|
|
2022-05-31 21:58:23 +03:00
|
|
|
checks = doFilter filters.checks projects.checks;
|
|
|
|
|
|
|
|
inherit (projects) devShells;
|
2022-03-14 00:13:53 +02:00
|
|
|
}
|