depot/packages/default.nix

20 lines
616 B
Nix
Raw Normal View History

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;
doFilter = filterSet: pkgSet: pkgs.lib.filterAttrs (name: _:
filterSet ? "${name}" -> builtins.elem system filterSet."${name}"
) pkgSet;
2022-03-14 00:13:53 +02:00
in {
packages = doFilter filters.packages all;
2022-03-14 00:13:53 +02:00
checks = doFilter filters.checks projects.checks;
inherit (projects) devShells;
2022-03-14 00:13:53 +02:00
}