flake: filter 'packages' on system
This commit is contained in:
parent
e319eaf09f
commit
cd1173d2f6
|
@ -135,7 +135,13 @@
|
||||||
inherit (self.checks.${system}.pre-commit) shellHook;
|
inherit (self.checks.${system}.pre-commit) shellHook;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
packages =
|
||||||
|
let
|
||||||
packages = import ./pkgs { inherit pkgs; };
|
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;
|
overlay = self.overlays.pkgs;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue