Loading pkgs/applications/video/davinci-resolve/default.nix +25 −1 Original line number Diff line number Diff line Loading @@ -25,6 +25,9 @@ , jq , studioVariant ? false , common-updater-scripts , writeShellApplication }: let Loading Loading @@ -251,7 +254,28 @@ buildFHSEnv { '' }"; passthru = { inherit davinci; }; passthru = { inherit davinci; updateScript = lib.getExe (writeShellApplication { name = "update-davinci-resolve"; runtimeInputs = [ curl jq common-updater-scripts ]; text = '' set -o errexit drv=pkgs/applications/video/davinci-resolve/default.nix currentVersion=${lib.escapeShellArg davinci.version} downloadsJSON="$(curl --fail --silent https://www.blackmagicdesign.com/api/support/us/downloads.json)" latestLinuxVersion="$(echo "$downloadsJSON" | jq '[.downloads[] | select(.urls.Linux) | .urls.Linux[] | select(.downloadTitle | test("DaVinci Resolve")) | .downloadTitle]' | grep -oP 'DaVinci Resolve \K\d+\.\d+\.\d+' | sort | tail -n 1)" update-source-version davinci-resolve "$latestLinuxVersion" --source-key=davinci.src # Since the standard and studio both use the same version we need to reset it before updating studio sed -i -e "s/""$latestLinuxVersion""/""$currentVersion""/" "$drv" latestStudioLinuxVersion="$(echo "$downloadsJSON" | jq '[.downloads[] | select(.urls.Linux) | .urls.Linux[] | select(.downloadTitle | test("DaVinci Resolve")) | .downloadTitle]' | grep -oP 'DaVinci Resolve Studio \K\d+\.\d+\.\d+' | sort | tail -n 1)" update-source-version davinci-resolve-studio "$latestStudioLinuxVersion" --source-key=davinci.src ''; }); }; meta = with lib; { description = "Professional video editing, color, effects and audio post-processing"; Loading Loading
pkgs/applications/video/davinci-resolve/default.nix +25 −1 Original line number Diff line number Diff line Loading @@ -25,6 +25,9 @@ , jq , studioVariant ? false , common-updater-scripts , writeShellApplication }: let Loading Loading @@ -251,7 +254,28 @@ buildFHSEnv { '' }"; passthru = { inherit davinci; }; passthru = { inherit davinci; updateScript = lib.getExe (writeShellApplication { name = "update-davinci-resolve"; runtimeInputs = [ curl jq common-updater-scripts ]; text = '' set -o errexit drv=pkgs/applications/video/davinci-resolve/default.nix currentVersion=${lib.escapeShellArg davinci.version} downloadsJSON="$(curl --fail --silent https://www.blackmagicdesign.com/api/support/us/downloads.json)" latestLinuxVersion="$(echo "$downloadsJSON" | jq '[.downloads[] | select(.urls.Linux) | .urls.Linux[] | select(.downloadTitle | test("DaVinci Resolve")) | .downloadTitle]' | grep -oP 'DaVinci Resolve \K\d+\.\d+\.\d+' | sort | tail -n 1)" update-source-version davinci-resolve "$latestLinuxVersion" --source-key=davinci.src # Since the standard and studio both use the same version we need to reset it before updating studio sed -i -e "s/""$latestLinuxVersion""/""$currentVersion""/" "$drv" latestStudioLinuxVersion="$(echo "$downloadsJSON" | jq '[.downloads[] | select(.urls.Linux) | .urls.Linux[] | select(.downloadTitle | test("DaVinci Resolve")) | .downloadTitle]' | grep -oP 'DaVinci Resolve Studio \K\d+\.\d+\.\d+' | sort | tail -n 1)" update-source-version davinci-resolve-studio "$latestStudioLinuxVersion" --source-key=davinci.src ''; }); }; meta = with lib; { description = "Professional video editing, color, effects and audio post-processing"; Loading