nixos-configs/nixFastChecks/packages/default.nix
matt1432 6ca0d7248b
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: rename some flake attr directories
2024-12-16 15:51:41 -05:00

18 lines
340 B
Nix

{
pkgs,
self,
}: let
inherit (pkgs.lib) elem filterAttrs hasAttr mapAttrs' nameValuePair;
packages =
filterAttrs (
_: v:
!(hasAttr "platforms" v.meta)
|| elem pkgs.system v.meta.platforms
)
self.packages.${pkgs.system};
in
mapAttrs'
(name: pkg:
nameValuePair "pkg_${name}" pkg)
packages