diff --git a/nix/pkgs/plex-pass.nix b/nix/pkgs/plex-pass.nix index a3ab8bf064..87cb3fe5c0 100644 --- a/nix/pkgs/plex-pass.nix +++ b/nix/pkgs/plex-pass.nix @@ -4,10 +4,10 @@ { pkgs, ... }: let - version = "1.40.1.8120-6dc7f7fd8"; + version = "1.40.5.8796-3e374e32c"; 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"; - hash = "sha256:1jzjq911izi1k8s33ys9y497drd2n3sxlr3ljvkhlvv6vl92ndvg"; + 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:0vdf3cilghmi8gd18dw6d4qg6j71ikfp9lqnd2qy6jjw8a3m3jk8"; }; in (pkgs.plex.override { diff --git a/nix/pkgs/updateplexpass.sh b/nix/pkgs/updateplexpass.sh index a29335922e..f7beb80371 100755 --- a/nix/pkgs/updateplexpass.sh +++ b/nix/pkgs/updateplexpass.sh @@ -5,7 +5,7 @@ [ -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}" -alias jq="nix run depot.pkgs.jq -c jq" +alias jq="nix run -f '' pkgs.jq --" VERSION_JSON="$(curl "$VERSION_JSON_URL")" VERSION="$(jq -r '.computer.Linux.version' <<< "$VERSION_JSON")"