summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/networking/browsers/chromium/update.py
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/networking/browsers/chromium/update.py')
-rwxr-xr-xpkgs/applications/networking/browsers/chromium/update.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/applications/networking/browsers/chromium/update.py b/pkgs/applications/networking/browsers/chromium/update.py
index ec656ef8527f..d6788fa41927 100755
--- a/pkgs/applications/networking/browsers/chromium/update.py
+++ b/pkgs/applications/networking/browsers/chromium/update.py
@@ -166,9 +166,18 @@ with urlopen(HISTORY_URL) as resp:
f'{DEB_URL}/google-chrome-{google_chrome_suffix}/' +
f'google-chrome-{google_chrome_suffix}_{build["version"]}-1_amd64.deb')
except subprocess.CalledProcessError:
- # This build isn't actually available yet. Continue to
- # the next one.
- continue
+ if (channel_name == 'ungoogled-chromium' and 'sha256' in channel and
+ build['version'].split('.')[0] == last_channels['stable']['version'].split('.')[0]):
+ # Sometimes ungoogled-chromium is updated to a newer tag than
+ # the latest stable Chromium version. In this case we'll set
+ # sha256bin64 to null and the Nixpkgs code will fall back to
+ # the latest stable Google Chrome (only required for
+ # Widevine/DRM which is disabled by default):
+ channel['sha256bin64'] = None
+ else:
+ # This build isn't actually available yet. Continue to
+ # the next one.
+ continue
channel['deps'] = get_channel_dependencies(channel['version'])
if channel_name == 'stable':