treewide: Migrate to the new dream2nix API

This commit is contained in:
Tristan Daniël Maat 2024-01-01 19:56:16 +01:00
parent 5163ef9d6a
commit 40e0946201
Signed by: tlater
GPG key ID: 49670FD774E43268
59 changed files with 15003 additions and 24504 deletions

View file

@ -1,14 +1,25 @@
{
lib,
self,
system,
writeShellApplication,
cargo,
git,
nix,
npm,
npm-check-updates,
yq-go,
}:
writeShellApplication {
name = "update";
runtimeInputs = [cargo git nix npm npm-check-updates yq-go];
text = builtins.readFile ./scripts/update.sh;
}
}: 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;
}