nixos-configs/checks/packages/default.nix
matt1432 1fd44269a2
All checks were successful
Discord / discord commits (push) Has been skipped
feat(checks): make #nixFastChecks an attrset
2024-12-11 12:05:16 -05:00

17 lines
336 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