From ea7c012e4bdd8e7a105960c92a0380fb812e84c0 Mon Sep 17 00:00:00 2001 From: Julien Langlois Date: Thu, 5 Sep 2019 17:43:58 -0400 Subject: [PATCH] Explicitly check for channels in widevine plugin unpack command. --- pkgs/applications/networking/browsers/chromium/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/networking/browsers/chromium/default.nix b/pkgs/applications/networking/browsers/chromium/default.nix index 6270d4c8dc19..a5baa69bcfa7 100644 --- a/pkgs/applications/networking/browsers/chromium/default.nix +++ b/pkgs/applications/networking/browsers/chromium/default.nix @@ -59,7 +59,8 @@ in let unpackCmd = let chan = if upstream-info.channel == "dev" then "chrome-unstable" else if upstream-info.channel == "stable" then "chrome" - else "chrome-${upstream-info.channel}"; + else if upstream-info.channel == "beta" then "chrome-beta" + else throw "Unknown chromium channel."; in '' mkdir -p plugins ar p "$src" data.tar.xz | tar xJ -C plugins --strip-components=4 \