flake.nix: Add update script

This commit is contained in:
Tristan Daniël Maat 2023-01-19 07:59:58 +00:00
parent 5c537df885
commit d142e98788
Signed by: tlater
GPG key ID: 49670FD774E43268
3 changed files with 86 additions and 8 deletions

14
nix/update.nix Normal file
View file

@ -0,0 +1,14 @@
{
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;
}