nixos-configs/apps/packages.nix
matt1432 546eda3ee2
All checks were successful
Discord / discord commits (push) Has been skipped
feat: refactor to add apps README
2025-01-20 12:34:07 -05:00

15 lines
373 B
Nix

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