depot/packages/default.nix

17 lines
493 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;
2022-03-14 00:13:53 +02:00
in {
2022-05-23 11:58:42 +03:00
packages = pkgs.lib.filterAttrs (name: _:
filters ? "${name}" -> builtins.elem system filters."${name}"
) all;
2022-03-14 00:13:53 +02:00
inherit (projects) devShells;
}