2023-01-19 07:59:58 +00:00
|
|
|
{
|
2024-01-01 18:56:16 +00:00
|
|
|
lib,
|
|
|
|
self,
|
|
|
|
system,
|
2023-01-19 07:59:58 +00:00
|
|
|
writeShellApplication,
|
|
|
|
git,
|
|
|
|
nix,
|
|
|
|
yq-go,
|
2024-01-01 18:56:16 +00:00
|
|
|
}: let
|
|
|
|
selfPackages = self.packages.${system};
|
|
|
|
inherit (selfPackages.server.config.deps) cargo;
|
|
|
|
inherit (selfPackages.templates.config.deps) npm;
|
|
|
|
|
|
|
|
npm-check-updates =
|
|
|
|
(builtins.elemAt (lib.attrValues
|
|
|
|
selfPackages.templates.config.nodejs-granular-v3.deps.npm-check-updates)
|
|
|
|
0)
|
|
|
|
.package-func
|
|
|
|
.result;
|
|
|
|
in
|
|
|
|
writeShellApplication {
|
|
|
|
name = "update";
|
|
|
|
runtimeInputs = [cargo git nix npm npm-check-updates yq-go];
|
|
|
|
text = builtins.readFile ./scripts/update.sh;
|
|
|
|
}
|