Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 123d83148f8a
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e0c7e1fd05c3
Choose a head ref
  • 3 commits
  • 3 files changed
  • 1 contributor

Commits on Jun 10, 2020

  1. chromiumDev: Fix the configuration phase

    Relevant changes in M85:
    - Upstream switched from YASM to NASM [0].
    - third_party/binutils was removed [1].
    
    Note: The gn and dev channel updates are optional.
    cc #89615.
    
    [0]: https://bugs.chromium.org/p/chromium/issues/detail?id=766721
    [1]: chromium/chromium@9869e86
    
    (cherry picked from commit 029a5de)
    primeos committed Jun 10, 2020
    Copy the full SHA
    159c6a7 View commit details
  2. chromiumBeta: Fix the configuration phase

    The changes from chromiumDev (see 029a5de) are required for
    chromiumBeta as well.
    
    (cherry picked from commit 1d38f6b)
    primeos committed Jun 10, 2020
    Copy the full SHA
    48f3b97 View commit details
  3. chromium{Beta,Dev}: Fix the builds

    Fix #89615.
    
    (cherry picked from commit e466ea7)
    primeos committed Jun 10, 2020
    Copy the full SHA
    e0c7e1f View commit details
22 changes: 15 additions & 7 deletions pkgs/applications/networking/browsers/chromium/common.nix
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
, bzip2, flac, speex, libopus
, libevent, expat, libjpeg, snappy
, libpng, libcap
, xdg_utils, yasm, minizip, libwebp
, xdg_utils, yasm, nasm, minizip, libwebp
, libusb1, pciutils, nss, re2, zlib

, python2Packages, perl, pkgconfig
@@ -13,6 +13,7 @@
, bison, gperf
, glib, gtk3, dbus-glib
, glibc
, xorg
, libXScrnSaver, libXcursor, libXtst, libGLU, libGL
, protobuf, speechd, libXdamage, cups
, ffmpeg, libxslt, libxml2, at-spi2-core
@@ -67,14 +68,14 @@ let
in attrs: concatStringsSep " " (attrValues (mapAttrs toFlag attrs));

gnSystemLibraries = [
"flac" "libwebp" "libxslt" "yasm" "opus" "snappy" "libpng"
"flac" "libwebp" "libxslt" "opus" "snappy" "libpng"
# "zlib" # version 77 reports unresolved dependency on //third_party/zlib:zlib_config
# "libjpeg" # fails with multiple undefined references to chromium_jpeg_*
# "re2" # fails with linker errors
# "ffmpeg" # https://crbug.com/731766
# "harfbuzz-ng" # in versions over 63 harfbuzz and freetype are being built together
# so we can't build with one from system and other from source
];
] ++ optional (versionRange "0" "84") "yasm";

opusWithCustomModes = libopus.override {
withCustomModes = true;
@@ -84,12 +85,12 @@ let
bzip2 flac speex opusWithCustomModes
libevent expat libjpeg snappy
libpng libcap
xdg_utils yasm minizip libwebp
xdg_utils minizip libwebp
libusb1 re2 zlib
ffmpeg libxslt libxml2
# harfbuzz # in versions over 63 harfbuzz and freetype are being built together
# so we can't build with one from system and other from source
];
] ++ (if (versionRange "0" "84") then [ yasm ] else [ nasm ]);

# build paths and release info
packageName = extraAttrs.packageName or extraAttrs.name;
@@ -117,7 +118,8 @@ let
ninja which python2Packages.python perl pkgconfig
python2Packages.ply python2Packages.jinja2 nodejs
gnutar
] ++ optional (versionAtLeast version "83") python2Packages.setuptools;
] ++ optional (versionAtLeast version "83") python2Packages.setuptools
++ optional (versionAtLeast version "84") (xorg.xcbproto.override { python = python2Packages.python; });

buildInputs = defaultDependencies ++ [
nspr nss systemd
@@ -217,10 +219,16 @@ let
ln -s ${stdenv.cc}/bin/clang third_party/llvm-build/Release+Asserts/bin/clang
ln -s ${stdenv.cc}/bin/clang++ third_party/llvm-build/Release+Asserts/bin/clang++
ln -s ${llvmPackages.llvm}/bin/llvm-ar third_party/llvm-build/Release+Asserts/bin/llvm-ar
'' + optionalString (versionAtLeast version "84") ''
substituteInPlace ui/gfx/x/BUILD.gn \
--replace \
'/usr/share/xcb' \
'${xorg.xcbproto}/share/xcb/'
'';

gnFlags = mkGnFlags ({
gnFlags = mkGnFlags (optionalAttrs (versionRange "0" "84") {
linux_use_bundled_binutils = false;
} // {
use_lld = false;
use_gold = true;
gold_path = "${stdenv.cc}/bin";
9 changes: 9 additions & 0 deletions pkgs/applications/networking/browsers/chromium/default.nix
Original file line number Diff line number Diff line change
@@ -41,6 +41,15 @@ let
sha256 = "00y2d35wvqmx9glaqhfb62wdgbfpwr77v0934nnvh9ks71vnsjqy";
};
});
} // lib.optionalAttrs (channel == "dev") {
gnChromium = gn.overrideAttrs (oldAttrs: {
version = "2020-05-19";
src = fetchgit {
url = "https://gn.googlesource.com/gn";
rev = "d0a6f072070988e7b038496c4e7d6c562b649732";
sha256 = "0197msabskgfbxvhzq73gc3wlr3n9cr4bzrhy5z5irbvy05lxk17";
};
});
});

browser = callPackage ./browser.nix { inherit channel enableWideVine; };
Original file line number Diff line number Diff line change
@@ -6,9 +6,9 @@
version = "84.0.4147.38";
};
dev = {
sha256 = "04jbh8bsvqkm8mdsgyv0465fq5lhz0nn0mcs07kj5hnmzx1g2f3a";
sha256bin64 = "0d9knpqbps06wgfgp2s7z693dqiip0m771mv3j2856h5v9rv210l";
version = "85.0.4158.4";
sha256 = "07h3i4ab7yj05ndrqchzf3f9wr809qb3dj2gfc1653mkjmba8h07";
sha256bin64 = "10jdq5mr7qby0m26l5lbsqcbh9bhjdpmpbkkcvv9wm2259rwjxr5";
version = "85.0.4164.2";
};
stable = {
sha256 = "10vg0fmwlkzpnixhhhcwccxshqdfq7rh0ribij7wgkw42bv0bi0j";