invidyous

This commit is contained in:
Chaos 2022-11-17 22:40:21 +00:00
parent ce4a0b2486
commit 5efb7ad372
No known key found for this signature in database
4 changed files with 6 additions and 9 deletions

View file

@ -38,7 +38,7 @@ in {
systemd.services.invidious.serviceConfig = {
Restart = "always";
RuntimeMaxSec = "1200";
RuntimeMaxSec = "4800";
};
services.nginx.virtualHosts."invidious.owo.monster" = {

View file

@ -7,5 +7,4 @@ final: prev: {
lsquic = final.callPackage ./invidious/lsquic.nix { };
videojs = final.callPackage ./invidious/videojs.nix { };
};
}

View file

@ -51,7 +51,7 @@ fi
json_set '.invidious.version' "$new_version"
json_set '.invidious.rev' "$new_rev"
new_sha256=$(nix-prefetch -I 'nixpkgs=../../..' "$pkg")
new_sha256=$(nix-prefetch -I 'nixpkgs=<nixpkgs>' "$pkg")
json_set '.invidious.sha256' "$new_sha256"
commit_msg="$pkg: $old_version -> $new_version"
@ -77,7 +77,7 @@ else
if [ "$lsquic_old_version" != "$lsquic_new_version" ]; then
info "Updating lsquic to $lsquic_new_version..."
json_set '.lsquic.version' "$lsquic_new_version"
lsquic_new_sha256=$(nix-prefetch -I 'nixpkgs=../../..' "${pkg}.lsquic")
lsquic_new_sha256=$(nix-prefetch -I 'nixpkgs=<nixpkgs>' "${pkg}.lsquic")
json_set '.lsquic.sha256' "$lsquic_new_sha256"
info "Updating boringssl..."
@ -85,12 +85,10 @@ else
boringssl_new_rev=$(curl -LSsf "https://github.com/litespeedtech/lsquic/raw/v${lsquic_new_version}/README.md" \
| grep -Pom1 '(?<=^git checkout ).*')
json_set '.boringssl.rev' "$boringssl_new_rev"
boringssl_new_sha256=$(nix-prefetch -I 'nixpkgs=../../..' "${pkg}.lsquic.boringssl")
boringssl_new_sha256=$(nix-prefetch -I 'nixpkgs=<nixpkgs>' "${pkg}.lsquic.boringssl")
json_set '.boringssl.sha256' "$boringssl_new_sha256"
commit_msg="$commit_msg
lsquic: $lsquic_old_version -> $lsquic_new_version"
fi
fi
git commit --verbose --message "$commit_msg" -- versions.json shards.nix

View file

@ -4,9 +4,9 @@
"sha256": "sha256-EU6T9yQCdOLx98Io8o01rEsgxDFF/Xoy42LgPopD2/A="
},
"invidious": {
"rev": "09942dee6621e7047a63dffcc61b3bbf78cef2c6",
"rev": "47cc26cb3c5862e6ae96f89882ee08c6a8185672",
"sha256": "sha256-0Cb1Qsn6vnrzd4pZm1GZxlVQNn5dYKUR/xWMCG37GSk=",
"version": "unstable-2022-11-02"
"version": "unstable-2022-11-16"
},
"lsquic": {
"sha256": "sha256-hG8cUvhbCNeMOsKkaJlgGpzUrIx47E/WhmPIdI5F3qM=",