15 lines
373 B
Nix
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"
|
|
])
|