nixos-configs/apps/packages.nix
matt1432 b8693b725b
All checks were successful
Discord / discord commits (push) Has been skipped
feat: init pin-inputs script
2025-01-27 18:16:59 -05:00

16 lines
381 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 x (callPackage ./${x})) [
"extract-subs"
"gen-docs"
"pin-inputs"
"update-sources"
])