refactor(flake): expose appsPackages

This commit is contained in:
matt1432 2024-11-23 19:35:01 -05:00
parent 5dd3f3f4e6
commit d3e9a1b1d7
5 changed files with 26 additions and 10 deletions
checks/apps

View file

@ -2,12 +2,9 @@
pkgs,
self,
}: let
inherit (pkgs.lib) mapAttrs' nameValuePair removeAttrs removeSuffix;
inherit (pkgs.lib) mapAttrs' nameValuePair;
in
mapAttrs'
(name: app:
nameValuePair "app-${name}" (pkgs.symlinkJoin {
name = "app-${name}";
paths = [(removeSuffix "/bin/${name}" (toString app.program))];
}))
(removeAttrs self.apps.${pkgs.system} ["genflake"])
nameValuePair "app-${name}" app)
self.appsPackages.${pkgs.system}