git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #69054 from ivan/chromium-77.0.3865.90

chromium: 77.0.3865.75 -> 77.0.3865.90

commit8dbca5e3ca41787b3af3d3695062577f3b855a21 authorGraham Christensen <graham@grahamc.com> dateThu 19 Sep 2019, 18:01 (7 years ago) parenta81f8305456def
3 files changed+41−26
pkgs/applications/networking/browsers/chromium/common.nix+3−2 pkgs/applications/networking/browsers/chromium/default.nix+29−15 pkgs/applications/networking/browsers/chromium/upstream-info.nix+9−9
pkgs/applications/networking/browsers/chromium/common.nix+3−2
@@ -234,8 +234,9 @@ let
234234 use_gold = true;
235235 gold_path = "${stdenv.cc}/bin";
236236 is_debug = false;
237− # at least 2X compilation speedup
238− use_jumbo_build = true;
237+ # Use jumbo for a 2x (at least) compilation speedup, except where it is currently broken:
238+ # https://gist.github.com/ivan/6fe7014c1b1cc35dec133fa6de0549d9
239+ use_jumbo_build = (version != "78.0.3904.17");
239240
240241 proprietary_codecs = false;
241242 use_sysroot = false;
pkgs/applications/networking/browsers/chromium/default.nix+29−15
@@ -50,6 +50,7 @@ in let
5050 widevine = let upstream-info = chromium.upstream-info; in stdenv.mkDerivation {
5151 name = "chromium-binary-plugin-widevine";
5252
53+ # The .deb file for Google Chrome
5354 src = upstream-info.binary;
5455
5556 nativeBuildInputs = [ patchelfUnstable ];
@@ -57,14 +58,21 @@ in let
5758 phases = [ "unpackPhase" "patchPhase" "installPhase" "checkPhase" ];
5859
5960 unpackCmd = let
60− chan = if upstream-info.channel == "dev" then "chrome-unstable"
61− else if upstream-info.channel == "stable" then "chrome"
62− else if upstream-info.channel == "beta" then "chrome-beta"
63− else throw "Unknown chromium channel.";
61+ soPath =
62+ if upstream-info.channel == "stable" then
63+ "./opt/google/chrome/libwidevinecdm.so"
64+ else if upstream-info.channel == "beta" then
65+ "./opt/google/chrome-beta/libwidevinecdm.so"
66+ else if upstream-info.channel == "dev" then
67+ "./opt/google/chrome-unstable/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so"
68+ else
69+ throw "Unknown chromium channel.";
6470 in ''
6571 mkdir -p plugins
66− ar p "$src" data.tar.xz | tar xJ -C plugins --strip-components=4 \
67− ./opt/google/${chan}/libwidevinecdm.so
72+ # Extract just libwidevinecdm.so from upstream's .deb file
73+ ar p "$src" data.tar.xz | tar xJ -C plugins ${soPath}
74+ mv plugins/${soPath} plugins/
75+ rm -rf plugins/opt
6876 '';
6977
7078 doCheck = true;
@@ -83,7 +91,10 @@ in let
8391 "$out/lib/libwidevinecdm.so"
8492 '';
8593
86− meta.platforms = lib.platforms.x86_64;
94+ meta = {
95+ platforms = [ "x86_64-linux" ];
96+ license = lib.licenses.unfree;
97+ };
8798 };
8899
89100 suffix = if channel != "stable" then "-" + channel else "";
@@ -92,18 +103,21 @@ in let
92103
93104 version = chromium.browser.version;
94105
95− # This is here because we want to add the widevine shared object at the last
96− # minute in order to avoid a full rebuild of chromium. Additionally, this
97− # isn't in `browser.nix` so we can avoid having to re-expose attributes of
98− # the chromium derivation (see above: we introspect `sandboxExecutableName`).
106+ # We want users to be able to enableWideVine without rebuilding all of
107+ # chromium, so we have a separate derivation here that copies chromium
108+ # and adds the unfree libwidevinecdm.so.
99109 chromiumWV = let browser = chromium.browser; in if enableWideVine then
100110 runCommand (browser.name + "-wv") { version = browser.version; }
101111 ''
102112 mkdir -p $out
103− cp -R ${browser}/* $out/
104− chmod u+w $out/libexec/chromium*
105− cp ${widevine}/lib/libwidevinecdm.so $out/libexec/chromium/
106− # patchelf?
113+ cp -a ${browser}/* $out/
114+ chmod u+w $out/libexec/chromium
115+ if [[ ${channel} != "dev" ]]; then
116+ cp ${widevine}/lib/libwidevinecdm.so $out/libexec/chromium/
117+ else
118+ mkdir -p $out/libexec/chromium/WidevineCdm/_platform_specific/linux_x64
119+ cp ${widevine}/lib/libwidevinecdm.so $out/libexec/chromium/WidevineCdm/_platform_specific/linux_x64/
120+ fi
107121 ''
108122 else browser;
109123in stdenv.mkDerivation {
pkgs/applications/networking/browsers/chromium/upstream-info.nix+9−9
@@ -1,18 +1,18 @@
11# This file is autogenerated from update.sh in the same directory.
22{
33 beta = {
4− sha256 = "12cp24h93b48pwfywf5b6qvjdlhxrhp87qdaqbfcn6g787r2z5gb";
5− sha256bin64 = "0d9w869qqwbmw3qjvxkfm37i7dvrgmrwm5y96sm1dg2jnxqj4bdz";
6− version = "77.0.3865.75";
4+ sha256 = "1hzgzmrn0d6cqvqnqayl048zwlcx0f7azg2rhvm7p13lvyqzsk00";
5+ sha256bin64 = "0p3275ii8800swlfmljbdrvyqjd5nlw0vgv2my4r8ccszgbhidbd";
6+ version = "77.0.3865.90";
77 };
88 dev = {
9− sha256 = "0x5r6xqwiggwyzbinm252xc1n3f9r7cmmzj6assi4v1nsispdh2k";
10− sha256bin64 = "03yymhbpd1snycmcv7wkg5j6zbydvyc365gy5myp7wgas7cd0mb6";
11− version = "78.0.3887.7";
9+ sha256 = "0zka01ml3hbximswzkkqbqq8wpiz8f4fq4wx5fys002hi69l296l";
10+ sha256bin64 = "0nrip45s0ylri34vlpf16xlwv3ybmy2jg7dz8l9rvgbdwwdzdb75";
11+ version = "78.0.3904.17";
1212 };
1313 stable = {
14− sha256 = "12cp24h93b48pwfywf5b6qvjdlhxrhp87qdaqbfcn6g787r2z5gb";
15− sha256bin64 = "1wp5g09czyslkkhw3nhbp39fxfcz0pprsgj8h0aggghpdbvzph3d";
16− version = "77.0.3865.75";
14+ sha256 = "1hzgzmrn0d6cqvqnqayl048zwlcx0f7azg2rhvm7p13lvyqzsk00";
15+ sha256bin64 = "1npx867j39mdyivf8nlkcfwgq7j34hl7s948vf6h2kqni0y50hzl";
16+ version = "77.0.3865.90";
1717 };
1818}