nixos-configs/apps/default.nix
matt1432 a4c953df3b
All checks were successful
Discord / discord commits (push) Has been skipped
docs: add script to generate some docs from nix attrs
2025-01-20 11:06:01 -05:00

26 lines
552 B
Nix

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