invidious: fix update script

This commit is contained in:
Gaetan Lepage
2026-06-28 16:18:47 +00:00
parent ffaa53b644
commit 0b9cbdebba
+2 -2
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl crystal crystal2nix jq git moreutils nix nix-prefetch pkg-config pcre gnugrep
#!nix-shell -i bash -p curl crystal crystal2nix jq git moreutils nix nurl pkg-config pcre gnugrep
git_url='https://github.com/iv-org/invidious.git'
git_branch='master'
git_dir='/var/tmp/invidious.git'
@@ -51,7 +51,7 @@ json_set '.invidious.date' "$date"
json_set '.invidious.commit' "$commit"
json_set '.invidious.version' "$new_version"
new_hash=$(nix-prefetch -I 'nixpkgs=../../../..' "$pkg")
new_hash=$(nurl --submodules --hash "$git_url" "$new_tag")
json_set '.invidious.hash' "$new_hash"
# fetch video.js dependencies