flake: filter 'packages' on system

This commit is contained in:
Bruno BELANYI 2021-06-12 19:55:54 +02:00
parent 5d3204715a
commit aec2e08062

View file

@ -135,7 +135,13 @@
inherit (self.checks.${system}.pre-commit) shellHook;
};
packages =
let
packages = import ./pkgs { inherit pkgs; };
isSystem = pkg: builtins.elem system pkg.meta.platforms;
finalPackages = lib.flip lib.filterAttrs packages (_: isSystem);
in
finalPackages;
}) // {
overlay = self.overlays.pkgs;