2024-07-21 17:12:26 -04:00
|
|
|
{
|
|
|
|
pkgs,
|
2025-01-20 12:34:07 -05:00
|
|
|
self,
|
2024-07-21 17:12:26 -04:00
|
|
|
...
|
|
|
|
}: let
|
2025-01-20 12:34:07 -05:00
|
|
|
inherit (pkgs.lib) getExe mapAttrs' nameValuePair removePrefix;
|
2024-11-15 13:39:20 -05:00
|
|
|
|
2025-01-20 12:34:07 -05:00
|
|
|
mkApp = pkg: {
|
|
|
|
program = getExe pkg;
|
2024-07-21 17:12:26 -04:00
|
|
|
type = "app";
|
|
|
|
};
|
2024-11-15 13:39:20 -05:00
|
|
|
in
|
2025-01-20 12:34:07 -05:00
|
|
|
mapAttrs' (
|
|
|
|
n: v:
|
|
|
|
nameValuePair (removePrefix "app-" n) (mkApp v)
|
|
|
|
)
|
|
|
|
self.appsPackages.${pkgs.system}
|