3
0
Fork 0
forked from mirrors/nixpkgs

Explicitly check for channels in widevine plugin unpack command.

This commit is contained in:
Julien Langlois 2019-09-05 17:43:58 -04:00
parent c28eb26100
commit ea7c012e4b
No known key found for this signature in database
GPG key ID: BB220B0A40F7F862

View file

@ -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 \