nixos-configs/apps/default.nix
matt1432 d2625fa290
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: fit structure of main directories
2025-01-04 21:34:36 -05:00

20 lines
424 B
Nix

{
inputs,
pkgs,
...
}: let
inherit (pkgs.lib) getExe listToAttrs nameValuePair;
buildApp = attrs: (pkgs.callPackage ./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"
]