20 lines
424 B
Nix
20 lines
424 B
Nix
{
|
|
inputs,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (pkgs.lib) getExe listToAttrs nameValuePair;
|
|
|
|
buildApp = attrs: (pkgs.callPackage ./buildApp.nix ({} // inputs // attrs));
|
|
|
|
mkApp = file: {
|
|
program = getExe (pkgs.callPackage file ({inherit buildApp;} // inputs));
|
|
type = "app";
|
|
};
|
|
|
|
mkApps = apps: listToAttrs (map (x: nameValuePair x (mkApp ./${x})) apps);
|
|
in
|
|
mkApps [
|
|
"extract-subs"
|
|
"update-sources"
|
|
]
|