Add updater script

This commit is contained in:
Nathan McCarty 2023-05-13 15:59:18 -04:00
parent 5237226018
commit f8a7b1e5e8
Signed by: thatonelutenist
SSH Key Fingerprint: SHA256:hwQEcmak9E6sdU9bXc98RHw/Xd1AhpB5HZT7ZSVJkRM
2 changed files with 33 additions and 0 deletions

View File

@ -1,5 +1,21 @@
{
"nodes": {
"advisory-db": {
"flake": false,
"locked": {
"lastModified": 1683272394,
"narHash": "sha256-4XQZbSZ8XYAeASpr0Er8mNPnjbYLJwvaB+VyH+bt6DE=",
"owner": "RustSec",
"repo": "advisory-db",
"rev": "50bed3ba4066e6255dab434dc845e7f655812ce1",
"type": "github"
},
"original": {
"owner": "RustSec",
"repo": "advisory-db",
"type": "github"
}
},
"flake-utils": {
"inputs": {
"systems": "systems"
@ -56,6 +72,7 @@
},
"root": {
"inputs": {
"advisory-db": "advisory-db",
"naersk": "naersk",
"nixpkgs": "nixpkgs",
"rust-overlay": "rust-overlay",

16
update.sh Executable file
View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -eou pipefail
DIRECTORY=$(dirname "$0")
pushd $DIRECTORY
# Update our sources first
$DIRECTORY/sources/update-sources.sh
# Then update the flake
nix flake update
# Make sure the update worked
pushd $DIRECTORY/test-crate
./ci.sh
rm flake.lock