nixos-configs/apps/default.nix
matt1432 a67f0fd422
All checks were successful
Discord / discord commits (push) Has been skipped
feat(apps): add to nixFastBuild and clean up nix code
2024-11-15 13:39:20 -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"
]