update flake depends
This commit is contained in:
parent
a6d02a3de9
commit
26a9d17854
18
flake.lock
18
flake.lock
|
@ -138,11 +138,11 @@
|
|||
"utils": "utils_4"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1669071065,
|
||||
"narHash": "sha256-KBpgj3JkvlPsJ3duOZqFJe6tgr+wc75t8sFmgRbBSbw=",
|
||||
"lastModified": 1669825171,
|
||||
"narHash": "sha256-HxlZHSiRGXnWAFbIJMeujqBe2KgACYx5XDRY0EA9P+4=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "f7641a3ff398ccce952e19a199d775934e518c1d",
|
||||
"rev": "478610aa37c8339eacabfa03f07dacf5574edd47",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -191,11 +191,11 @@
|
|||
},
|
||||
"nixpkgs-unstable": {
|
||||
"locked": {
|
||||
"lastModified": 1669140675,
|
||||
"narHash": "sha256-npzfyfLECsJWgzK/M4gWhykP2DNAJTYjgY2BWkz/oEQ=",
|
||||
"lastModified": 1669542132,
|
||||
"narHash": "sha256-DRlg++NJAwPh8io3ExBJdNW7Djs3plVI5jgYQ+iXAZQ=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "2788904d26dda6cfa1921c5abb7a2466ffe3cb8c",
|
||||
"rev": "a115bb9bd56831941be3776c8a94005867f316a7",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -207,11 +207,11 @@
|
|||
},
|
||||
"nur": {
|
||||
"locked": {
|
||||
"lastModified": 1669182177,
|
||||
"narHash": "sha256-U3Bp+pZN58lEqlk1hoTyCGUckFpZfXW2b14p1NGymyY=",
|
||||
"lastModified": 1669805596,
|
||||
"narHash": "sha256-g1CPQZ+1jGhY4bsjppk+gH5jfzzqmPlqGHg0zSYS3Hw=",
|
||||
"owner": "nix-community",
|
||||
"repo": "NUR",
|
||||
"rev": "6ccbe180fc646a7672cede9fa008fd30d744d0c8",
|
||||
"rev": "c81b1e527f3a220abfa9bf8096153d52784c5007",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -32,10 +32,10 @@ today=$(LANG=C date -u +'%Y-%m-%d')
|
|||
|
||||
info "fetching $git_url..."
|
||||
if [ ! -d "$git_dir" ]; then
|
||||
git init --initial-branch="$git_branch" "$git_dir"
|
||||
git -C "$git_dir" remote add origin "$git_url"
|
||||
git init --initial-branch="$git_branch" "$git_dir" 2>/dev/null
|
||||
git -C "$git_dir" remote add origin "$git_url" 2>/dev/null
|
||||
fi
|
||||
git -C "$git_dir" fetch origin "$git_branch"
|
||||
git -C "$git_dir" fetch origin "$git_branch" 2>/dev/null
|
||||
|
||||
# use latest commit before today, we should not call the version *today*
|
||||
# because there might still be commits coming
|
||||
|
|
|
@ -14,7 +14,7 @@ json_set() {
|
|||
}
|
||||
|
||||
old_rev=$(json_get '.rev')
|
||||
new_rev=$(curl -L "https://api.github.com/repos/misskey-dev/misskey/releases" | jq ".[0].tag_name" -r)
|
||||
new_rev=$(curl -L "https://api.github.com/repos/misskey-dev/misskey/releases" 2>/dev/null | jq ".[0].tag_name" -r)
|
||||
|
||||
if [ "$new_rev" = "$old_rev" ]; then
|
||||
echo "misskey is up-to-date."
|
||||
|
@ -23,4 +23,4 @@ fi
|
|||
|
||||
json_set '.rev' "$new_rev"
|
||||
new_sha256=$(nix-prefetch fetchFromGitHub --owner misskey-dev --repo misskey --rev "$new_rev")
|
||||
json_set '.sha256' "$new_sha256"
|
||||
json_set '.sha256' "$new_sha256"
|
||||
|
|
Loading…
Reference in a new issue