nixos-configs/apps/packages.nix

16 lines
373 B
Nix
Raw Normal View History

2024-11-23 19:35:01 -05:00
{
2025-01-20 12:34:07 -05:00
inputs,
2024-11-23 19:35:01 -05:00
pkgs,
...
}: let
2025-01-20 12:34:07 -05:00
inherit (pkgs.lib) listToAttrs nameValuePair;
buildApp = attrs: (pkgs.callPackage ./buildApp.nix ({} // inputs // attrs));
callPackage = file: pkgs.callPackage file ({inherit buildApp;} // inputs);
2024-11-23 19:35:01 -05:00
in
2025-01-20 12:34:07 -05:00
listToAttrs (map (x: nameValuePair "app-${x}" (callPackage ./${x})) [
"extract-subs"
"gen-docs"
"update-sources"
])