tlaternet-webserver/nix/update.nix

26 lines
573 B
Nix
Raw Permalink Normal View History

2023-01-19 07:59:58 +00:00
{
lib,
self,
system,
2023-01-19 07:59:58 +00:00
writeShellApplication,
git,
nix,
yq-go,
}: 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;
}