plexRaw 0 -> 1 attrpath: plexRaw Checking auto update branch... [version] [version] generic version rewriter does not support multiple hashes [rustCrateVersion] [rustCrateVersion] No cargoSha256 or cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorSha256 or vendorHash [updateScript] [updateScript] Success [updateScript] these 2 derivations will be built: /nix/store/55gwpm26cbindjpf22n6i9mxw5da6z86-plexmediaserver-updater.drv /nix/store/a6rf6db8scnz45h01fyys4k9619vcp2a-packages.json.drv building '/nix/store/55gwpm26cbindjpf22n6i9mxw5da6z86-plexmediaserver-updater.drv'... building '/nix/store/a6rf6db8scnz45h01fyys4k9619vcp2a-packages.json.drv'... Going to be running update for following packages: - plexmediaserver-1.32.4.7195-7c8f9d3b6 Press Enter key to continue... Running update for: - plexmediaserver-1.32.4.7195-7c8f9d3b6: UPDATING ... - plexmediaserver-1.32.4.7195-7c8f9d3b6: DONE. Packages updated! [quotedUrls] [quotedUrls] nothing found to replace Diff after rewrites: diff --git a/pkgs/servers/plex/raw.nix b/pkgs/servers/plex/raw.nix index 558da4176b5..29841ca00d5 100644 --- a/pkgs/servers/plex/raw.nix +++ b/pkgs/servers/plex/raw.nix @@ -12,16 +12,16 @@ # server, and the FHS userenv and corresponding NixOS module should # automatically pick up the changes. stdenv.mkDerivation rec { - version = "1.32.4.7195-7c8f9d3b6"; + version = "1.32.5.7328-2632c9d3a"; pname = "plexmediaserver"; # Fetch the source src = if stdenv.hostPlatform.system == "aarch64-linux" then fetchurl { url = "https://downloads.plex.tv/plex-media-server-new/${version}/debian/plexmediaserver_${version}_arm64.deb"; - sha256 = "sha256-Qb684Mm080QudeLG111cLCSRh1CAJ31IjNOO62XkFTs="; + sha256 = "1dxhwggkj944ysm3nw4fkh46paf4c8xbyw7vls5hlbdp8pfknaaz"; } else fetchurl { url = "https://downloads.plex.tv/plex-media-server-new/${version}/debian/plexmediaserver_${version}_amd64.deb"; - sha256 = "sha256-lnkhjzBW9DENCVJNP+4h8fVVUh4LhnJ1XjrCjF3ngKE="; + sha256 = "1qbw1ws8vjkcbj2nv3mvb31g00144wbjpgnwmm1x2ny00yfp4q57"; }; outputs = [ "out" "basedb" ]; No auto update branch exists Old version 1.32.4.7195-7c8f9d3b6" not present in master derivation file with contents: { lib, stdenv , fetchurl , dpkg , writeScript , curl , jq , common-updater-scripts }: # The raw package that fetches and extracts the Plex RPM. Override the source # and version of this derivation if you want to use a Plex Pass version of the # server, and the FHS userenv and corresponding NixOS module should # automatically pick up the changes. stdenv.mkDerivation rec { version = "1.32.5.7328-2632c9d3a"; pname = "plexmediaserver"; # Fetch the source src = if stdenv.hostPlatform.system == "aarch64-linux" then fetchurl { url = "https://downloads.plex.tv/plex-media-server-new/${version}/debian/plexmediaserver_${version}_arm64.deb"; sha256 = "sha256-Xyk73UW3LQqLpvtwvzpixKlrCJyOcDuq9oQkOd/jsLc="; } else fetchurl { url = "https://downloads.plex.tv/plex-media-server-new/${version}/debian/plexmediaserver_${version}_amd64.deb"; sha256 = "sha256-p2BynQfAW9FDrdy+KxcnJADwwli7jm2FXGzKjTQPfOE="; }; outputs = [ "out" "basedb" ]; nativeBuildInputs = [ dpkg ]; unpackPhase = '' dpkg-deb -R $src . ''; installPhase = '' runHook preInstall mkdir -p "$out/lib" cp -dr --no-preserve='ownership' usr/lib/plexmediaserver $out/lib/ # Location of the initial Plex plugins database f=$out/lib/plexmediaserver/Resources/com.plexapp.plugins.library.db # Store the base database in the 'basedb' output cat $f > $basedb # Overwrite the base database in the Plex package with an absolute symlink # to the '/db' file; we create this path in the FHS userenv (see the "plex" # package). ln -fs /db $f runHook postInstall ''; # We're running in a FHS userenv; don't patch anything dontPatchShebangs = true; dontStrip = true; dontPatchELF = true; dontAutoPatchelf = true; passthru.updateScript = writeScript "${pname}-updater" '' #!${stdenv.shell} set -eu -o pipefail PATH=${lib.makeBinPath [curl jq common-updater-scripts]}:$PATH plexApiJson=$(curl -sS https://plex.tv/api/downloads/5.json) latestVersion="$(echo $plexApiJson | jq .computer.Linux.version | tr -d '"\n')" for platform in ${lib.concatStringsSep " " meta.platforms}; do arch=$(echo $platform | cut -d '-' -f1) dlUrl="$(echo $plexApiJson | jq --arg arch "$arch" -c '.computer.Linux.releases[] | select(.distro == "debian") | select(.build | contains($arch)) .url' | tr -d '"\n')" latestSha="$(nix-prefetch-url $dlUrl)" # The script will not perform an update when the version attribute is up to date from previous platform run # We need to clear it before each run update-source-version plexRaw 0 $(yes 0 | head -64 | tr -d "\n") --system=$platform update-source-version plexRaw "$latestVersion" "$latestSha" --system=$platform done ''; meta = with lib; { homepage = "https://plex.tv/"; sourceProvenance = with sourceTypes; [ binaryNativeCode ]; license = licenses.unfree; platforms = [ "x86_64-linux" "aarch64-linux" ]; maintainers = with maintainers; [ badmutex forkk lnl7 pjones thoughtpolice maxeaubrey MayNiklas ]; description = "Media library streaming server"; longDescription = '' Plex is a media server which allows you to store your media and play it back across many different devices. ''; }; }