nixos-configs/nixFastChecks/packages/default.nix

19 lines
340 B
Nix
Raw Normal View History

2024-11-21 23:33:37 -05:00
{
pkgs,
self,
}: let
inherit (pkgs.lib) elem filterAttrs hasAttr mapAttrs' nameValuePair;
2024-11-21 23:33:37 -05:00
packages =
filterAttrs (
_: v:
!(hasAttr "platforms" v.meta)
|| elem pkgs.system v.meta.platforms
)
self.packages.${pkgs.system};
in
mapAttrs'
2024-12-16 15:02:39 -05:00
(name: pkg:
nameValuePair "pkg_${name}" pkg)
2024-11-21 23:33:37 -05:00
packages