plex-pass: 1.40.1.8120-6dc7f7fd8 -> 1.40.5.8796-3e374e32c

This commit is contained in:
Luke Granger-Brown 2024-08-04 18:55:41 +01:00
parent ca3239982a
commit f3128af6fb
2 changed files with 4 additions and 4 deletions

View file

@ -4,10 +4,10 @@
{ pkgs, ... }: { pkgs, ... }:
let let
version = "1.40.1.8120-6dc7f7fd8"; version = "1.40.5.8796-3e374e32c";
src = pkgs.fetchurl { src = pkgs.fetchurl {
url = "https://downloads.plex.tv/plex-media-server-new/1.40.1.8120-6dc7f7fd8/debian/plexmediaserver_1.40.1.8120-6dc7f7fd8_amd64.deb"; url = "https://downloads.plex.tv/plex-media-server-new/1.40.5.8796-3e374e32c/debian/plexmediaserver_1.40.5.8796-3e374e32c_amd64.deb";
hash = "sha256:1jzjq911izi1k8s33ys9y497drd2n3sxlr3ljvkhlvv6vl92ndvg"; hash = "sha256:0vdf3cilghmi8gd18dw6d4qg6j71ikfp9lqnd2qy6jjw8a3m3jk8";
}; };
in in
(pkgs.plex.override { (pkgs.plex.override {

View file

@ -5,7 +5,7 @@
[ -z "$PLEX_PASS_TOKEN" ] && PLEX_PASS_TOKEN="$(vault kv get -field=token kv/apps/plex-pass)" [ -z "$PLEX_PASS_TOKEN" ] && PLEX_PASS_TOKEN="$(vault kv get -field=token kv/apps/plex-pass)"
VERSION_JSON_URL="https://plex.tv/pms/downloads/5.json?channel=plexpass&X-Plex-Token=${PLEX_PASS_TOKEN}" VERSION_JSON_URL="https://plex.tv/pms/downloads/5.json?channel=plexpass&X-Plex-Token=${PLEX_PASS_TOKEN}"
alias jq="nix run depot.pkgs.jq -c jq" alias jq="nix run -f '<depot>' pkgs.jq --"
VERSION_JSON="$(curl "$VERSION_JSON_URL")" VERSION_JSON="$(curl "$VERSION_JSON_URL")"
VERSION="$(jq -r '.computer.Linux.version' <<< "$VERSION_JSON")" VERSION="$(jq -r '.computer.Linux.version' <<< "$VERSION_JSON")"