nixos-configs/apps/default.nix
matt1432 d3e9a1b1d7
All checks were successful
Discord / discord commits (push) Has been skipped
refactor(flake): expose appsPackages
2024-11-23 19:35:01 -05:00

20 lines
428 B
Nix

{
inputs,
pkgs,
...
}: let
inherit (pkgs.lib) getExe listToAttrs nameValuePair;
buildApp = attrs: (pkgs.callPackage ./nix/buildApp.nix ({} // inputs // attrs));
mkApp = file: {
program = getExe (pkgs.callPackage file ({inherit buildApp;} // inputs));
type = "app";
};
mkApps = apps: listToAttrs (map (x: nameValuePair x (mkApp ./${x})) apps);
in
mkApps [
"extract-subs"
"update-sources"
]